Skip to content

Report a problem:

Problems can be reported via Microsoft Teams in your team channel within the "IT - Codey" team.

Please include the following information:

Report type:
Docs problem report a bug instead β†’
Path:
/vnext/docs/components/general/icon.html
Message:

DESCRIBE THE PROBLEM BEFORE SUBMITTING TO CODEY

Icon ​

ts
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.
sizeString"md"falseSet the size of the icon ("sm", "md", "lg", "xl")
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, animate-spin [animation-duration:3s]

Report a problem:

Problems can be reported via Microsoft Teams in your team channel within the "IT - Codey" team.

Please include the following information:

Report type:
Docs problem report a bug instead β†’
Path:
/vnext/docs/components/general/icon.html
Message:

DESCRIBE THE PROBLEM BEFORE SUBMITTING TO CODEY

Last updated: