Skip to content
Nana UI

Icon

View .md Download

An SVG icon component backed by a built-in icon set. Accepts a name attribute to render a named icon, or a default slot for custom SVG content.

Terminal window
npm install @nana-tec/ui-components
import "@nana-tec/ui-components/icon";
<nana-icon name="edit"></nana-icon>
<nana-icon name="link"></nana-icon>
<nana-icon name="image"></nana-icon>

Properties

PropertyAttributeTypeDefaultDescription
labelstring""Accessible label. Set to "" when the icon is decorative.
nameIconName | """"Named icon from the built-in set
sizeSize"md"Size preset

Slots

SlotDescription
(default)Custom SVG content (used when `name` is not provided)
SlotDescription
(default)Custom SVG content (used when name is not provided)

Every icon in the built-in set. Search by name and click any icon to copy its name — no guessing what exists.

346 of 346 icons

Navigation & layout

Actions

Status & alerts

Selection & rating

Communication

Media & playback

Files & documents

Text & formatting

Finance

Analytics & data

Commerce & logistics

People & accounts

Time & calendar

Maps & places

Transportation

Weather & nature

Health & medical

Food & drink

Devices & hardware

Connectivity

System & settings

Misc

Other

Explore Icon interactively Every state, prop, and edge case — with live controls — in Storybook.
View in Storybook