Installation
HugeIcons are included with Reflex UI. The component automatically imports icons from:@hugeicons/[email protected]- React components@hugeicons/[email protected]- Icon definitions
Basic Usage
Props
The main icon to display. Use the icon name from the HugeIcons library (e.g., “Home01Icon”, “Search01Icon”).
Alternative icon for states or interactions. When
show_alt is True, this icon will be displayed instead of the main icon.Whether to show the alternative icon. Toggle between the main icon and alt_icon.
The size of the icon in pixels.
The stroke width of the icon. Controls the thickness of the icon lines.
Icon Variants
HugeIcons supports switching between icon variants using thealt_icon prop:
Customization
Size and Stroke
Styling with Tailwind
The icon inherits color and other styles from its parent or applied classes:Finding Icons
Browse the complete HugeIcons library at hugeicons.com. Each icon has a unique name that you can use with theicon prop.
Common icons include:
- Navigation:
Home01Icon,Menu01Icon,ArrowLeft01Icon - Actions:
Add01Icon,Edit01Icon,Delete01Icon - UI:
Search01Icon,Settings01Icon,User01Icon - Status:
CheckIcon,AlertCircleIcon,InfoCircleIcon