Skip to content

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 ​

NameTypeDefaultRequiredDescription
iconIcon ComponenttrueThe imported icon to be shown.
size"sm", "md", "lg", "xl""md"falseSet the size of the icon
showNotificationBadgebooleanfalsefalseIndicate to show the notification badge on the icon
dataAutomationIdStringiconfalseThe automation id given to the component.

Classes ​

The animation & color can be set using classes:

PurposeExample Class
Colortext-icon-brand
Animationanimate-spin