Tangible Design System · @tangible/ui 0.2.29 · Interactive version · Markdown

Icon

Icon component for SVG icons from the registry or emoji characters.

Accessibility:

import { Icon } from '@tangible/ui';

Interactive docs and examples: Icon in Storybook.

Icon props

Prop Type Default Description
className? string
emoji? string Emoji or unicode character (alternative to name). The same labelling contract as name applies: pass label when the emoji conveys meaning not available from surrounding text (🔒 for locked, ⚠️ for a warning); omit it only for decoration.
label? string Accessible label for informative icons. Required if icon conveys meaning.
name? IconName Icon name from registry (e.g., "system/check")
size? "lg" | "md" | "sm" | "xl" | "xs" | "xxl" Icon size. Defaults to inherit from parent font-size.

Examples

Other stories: Basic, All Sizes (interactive page).

Component API tokens

Read via fallback, never declared. Set one on an ancestor to restyle every instance under it.