Skip to content

pantoken / formats/icons/src / getIcon

Függvény: getIcon()

getIcon(name): PantokenIcon | undefined

Béta

Ikon keresése név szerint.

Paraméterek

name

string

Visszatérés

PantokenIcon | undefined

Példa

ts
import { getIcon } from "@pantoken/icons";

const icon = getIcon("arrow-left");
icon?.viewBox; // "0 0 24 24"