Usage
The Icon component renders icons from the Kivora icon set, which is powered by Lucide React. It provides a consistent API for rendering icons with customizable size and color.Examples
Basic Icon
Custom Size and Color
With Accessibility Label
In Buttons
Props
The name of the icon to render. Available icons include:
- Navigation:
arrow-left,arrow-right,arrow-up,arrow-down,chevron-left,chevron-right,chevron-up,chevron-down,home,menu - Actions:
check,close,plus,minus,edit,trash,copy,share,download,upload,search - UI:
eye,eye-off,more-horizontal,more-vertical,loader - Status:
info,warning,error,success - User:
user,users,settings,bell,mail,lock,unlock - Misc:
star,heart,calendar,clock
The size of the icon in pixels.
The color of the icon. Defaults to inheriting the current text color.
Additional CSS classes to apply to the icon.
Accessibility label for the icon. Use when the icon is the only content (e.g., in icon-only buttons).
Alternative to
aria-label for accessibility labels.Accessibility
- When
aria-labeloraccessibilityLabelis provided, the icon is visible to screen readers - When no label is provided,
aria-hidden="true"is automatically set - Always provide an accessibility label for standalone icons that convey meaning