Icon β
javascript
import { XerIcon } from "@xerius/codey-components";
Showcases β
Default Icon β
With Custom Size β
With Custom Color β
With Animation β
With Notification Badge β
Option API β
Fallback Icon β
The XerIcon
component has a fallback icon that will be displayed if the wanted icon can't be found. This fallback icon will be the error
icon.
Overview β
Props β
Name | Type | Default | Required | Description |
---|---|---|---|---|
icon | Icon Component | true | The imported icon to be shown. | |
size | "sm", "md", "lg", "xl" | "md" | false | Set the size of the icon |
showNotificationBadge | boolean | false | false | Indicate to show the notification badge on the icon |
dataAutomationId | String | icon | false | The automation id given to the component. |
Classes β
The animation
& color
can be set using classes:
Purpose | Example Class |
---|---|
Color | text-icon-brand |
Animation | animate-spin |