Skip to content

pantoken-root / formats/icons/src / getIcon

Funkcja: getIcon() ​

getIcon(name): PantokenIcon | undefined

Beta

Wyszukaj ikonę po nazwie.

Parametry ​

name ​

string

Zwraca ​

PantokenIcon | undefined

Przykład ​

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

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