Icon
Icon component for rendering icons with consistent styling
Playground
Props
| Prop | Type | Default | Value |
|---|---|---|---|
name | IconName | β | β |
icon | LucideIcon | ComponentType<{ size?: number | β | β |
size | number | 'sm' | 'md' | 'lg' | 'xl' | β | |
variant | 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'muted' | β | |
iconProps | Omit<LucideProps, 'size'> | β |
Usage
// Use icon names (recommended)
<Icon name="home" />
<Icon name="search" size="lg" variant="primary" />
// Or pass custom icon
<Icon icon={CustomIcon} size={24} />Variants
Style Variants
default
primary
success
warning
danger
muted
Disabled State
default disabled
primary disabled
success disabled
Sizes
sm
md
lg
xl