pantoken / formats/icons/src / getIcon
Function: getIcon()
getIcon(
name):PantokenIcon|undefined
Beta
Look up an icon by name.
Parameters
name
string
Returns
PantokenIcon | undefined
Example
ts
import { getIcon } from "@pantoken/icons";
const icon = getIcon("arrow-left");
icon?.viewBox; // "0 0 24 24"