Skip to content

pantoken-root / formats/icons/src / getIcon

Função: getIcon() ​

getIcon(name): PantokenIcon | undefined

Beta

Procurar um ícone pelo nome.

Parâmetros ​

name ​

string

Retorna ​

PantokenIcon | undefined

Exemplo ​

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

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