Docs
Components
Dark
Light
System
Used for displaying an svg icon
It's recommended to use React Icons because it offers a large and versatile icon set.
You can also use a custom SVG, if you prefer not to use from React Icons library
You can dynamically set the icon based on user interactions or props
Note: Avoid wrapping the icon in a fragment (<>...</> or <FaUser/>) as this may cause the component to break.
icon
Type:
ElementType
Accepts a JSX element representing an icon.
Default:
size
number
Size of the icon, this accepts only `number`
className
string
Custom class name for the icon
onClick
function
Click event handler
onMouseEnter
Mouse enter event handler
onMouseLeave
Mouse leave event handler
styles
CSSProperties
Custom styles for the icon
color
Color of the icon
title
Title of the icon if any