Skip to content

pantoken / formats/icons/src / getIcon

Función: getIcon()

getIcon(name): PantokenIcon | undefined

Beta

Buscar un icono por nombre.

Parámetros

name

string

Devuelve

PantokenIcon | undefined

Ejemplo

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

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