120 icons available · Click icon to copy · Click name to rename
| Prop | Type | Default | Description |
|---|---|---|---|
name | IconName | required | Icon name from the library |
size | "small" | "default" | "large" | number | "default" | Icon size (preset or custom px) |
className | string | - | Custom CSS classes (use for color) |
import { DesignIcon } from "@/components/ui/design-icon"
// Default (20px)
<DesignIcon name="check" />
// Preset sizes
<DesignIcon name="check" size="small" /> // 16px
<DesignIcon name="check" size="large" /> // 24px
// Custom size
<DesignIcon name="check" size={32} />
// Custom color
<DesignIcon name="check" className="text-blue-500" /><DesignButton leftIcon={<DesignIcon name="plus" />}>
Add Item
</DesignButton><DesignInput
placeholder="Search..."
startContent={<DesignIcon name="search" className="text-[var(--color-font-tertiary)]" />}
/><DropdownMenuItem> <DesignIcon name="edit" /> <span>Edit</span> </DropdownMenuItem>
<div className="w-8 h-8 flex items-center justify-center rounded-full bg-green-500/10"> <DesignIcon name="check" size="small" className="text-green-600" /> </div>
Import
import { DesignIcon } from "@/components/ui/design-icon"Basic
<DesignIcon name="icon-name" />With Size
<DesignIcon name="check" size="small" />With Color
<DesignIcon name="favorite" className="text-red-500" />Sizes: small=16px, default=20px, large=24px, or custom number
Color: Uses currentColor, customize via className with Tailwind text colors
Available icons: 120 icons - search above or check availableIcons export