Skip to content

Icon

Renders a lucide icon with Silver UI size and color tokens.

<Icon color="primary" icon={Home} size="md" />
<div className={styles.row}>
{sizes.map(size => (
<Icon key={size} {...args} size={size} />
))}
</div>
primary
secondary
tertiary
disabled
accent
success
error
warning
inherit
blue
red
green
gray
cyan
teal
yellow
orange
pink
purple
<div className={styles.grid}>
{colors.map(color => (
<div className={styles.colorItem} key={color}>
<Icon {...args} color={color} />
<Text>{color}</Text>
</div>
))}
</div>

Renders a lucide icon with Silver UI size and color tokens.

PropTypeDefaultDescription
classNamestringAdditional CSS class names applied to the SVG element.
color"error" | "info" | "success" | "warning" | "primary" | "red" | "orange" | "yellow" | "green" | "teal" | "cyan" | "blue" | "purple" | "pink" | "gray" | "secondary" | "accent" | "disabled" | "inherit" | "tertiary"'inherit'Color token used for the icon.
data-testidstringTest ID applied to the SVG element.
icon*IconComponentLucide icon component to render.
refRef<SVGSVGElement>Ref forwarded to the SVG element.
size"sm" | "md" | "lg"'md'Icon size.
styleCSSPropertiesInline styles applied to the SVG element.