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"