Skip to content

pantoken-root / formats/icons/src / getIcon

関数: getIcon() ​

getIcon(name): PantokenIcon | undefined

ベータ

名前でアイコンを検索します。

パラメーター ​

name ​

string

戻り値 ​

PantokenIcon | undefined

例 ​

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

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