Elements

Components

Icon

The inkwell: a standard box that keeps any inline svg at its optical measure and in the text's own ink — the icon carries no pigment and no size of its own. Bring a glyph through `glyph` (a direct registry import), through `name` from the whitelisted registry, or bring your own; the well renders either.

#Basic usage

icon/basic Vue React

The stroke falls where the light leaves it and the line goes on.

icon/in-text Vue React

Moonlight fills the vessel and the page keeps still.

icon/sizes Vue React

#Props

#Icon

PropTypeDefaultDescription
sizeString"inherit"Size steps follow the surrounding font size; inherit is the default — one em of the text the icon sits in.
labelStringundefinedThe accessible name. Without it the icon is presentation-only and hidden from the accessibility tree.
glyphObjectundefinedA glyph from the registry, imported directly. Ignored when a default slot is given — an explicit glyph always wins.
nameStringundefinedA registry name — only the whitelisted set the wrappers draw themselves. Ignored when glyph or a default slot is given.