Skip to content

pantoken-root / 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ési érték ​

PantokenIcon | undefined

Példa ​

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

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