Skip to content

pantoken-root / formats/icons/src / getIcon

Funktio: getIcon() ​

getIcon(name): PantokenIcon | undefined

Beta

Hae kuvake nimen perusteella.

Parametrit ​

name ​

string

Palauttaa ​

PantokenIcon | undefined

Esimerkki ​

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

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