Skip to content

charton API


charton API / @chart-on/ui / index / IconNode

Type Alias: IconNode ​

IconNode = [string, Record<string, string | number | undefined>][]

Defined in: ui/src/dom.ts:8

An icon as data: the child elements of a 24-unit <svg>, each a tag name and its attributes, stroked with currentColor. The built-in icons use this shape, as does the open-source icon set the shell's other icons come from, so that set's icon objects work here as they are.