Lucent UI
TextIconChip
✦ LLM-ready

Icon

atom

Wrapper that sizes and colours any inline SVG to align with the type scale. Pass your own SVG as children.

"Add an Icon from lucent-ui wrapping a check-circle SVG. Use size="lg" and color the icon with the success token."

Usage

React / JSX
import { Icon } from 'lucent-ui'

<Icon size="md" label="Icon">Icon</Icon>

Installation

pnpm add lucent-ui

API Reference

Icon props — * required

PropTypeDefaultDescription
size"xs" | "sm" | "md" | "lg" | "xl""md"Icon dimensions.
colorstringCSS colour value or CSS variable. Defaults to currentColor.
labelstringAccessible label (sets aria-label). If omitted the icon is decorative.
children*React.ReactNodeAn inline SVG element.