Skip to content

pantoken / formats/icons/src / getIcon

Função: getIcon()

getIcon(name): PantokenIcon | undefined

Beta

Pesquisar 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"