Skip to content

pantoken-root / formats/icons/src / getIcon

Fonction: getIcon() ​

getIcon(name): PantokenIcon | undefined

Bêta

Rechercher une icône par son nom.

Paramètres ​

name ​

string

Renvoie ​

PantokenIcon | undefined

Exemple ​

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

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