Skip to content

pantoken-root / formats/icons/src / getIcon

Funzione: getIcon() ​

getIcon(name): PantokenIcon | undefined

Beta

Cerca un'icona per nome.

Parametri ​

name ​

string

Restituisce ​

PantokenIcon | undefined

Esempio ​

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

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