Badges
The Badge component can be used to show text, labels, and counters inside a small box or circle element which can be placed inside paragraphs, buttons, dropdowns, menu items, and more.
The Badge component can be used to show text, labels, and counters inside a small box or circle element which can be placed inside paragraphs, buttons, dropdowns, menu items, and more.
To get started, import the Badges component and define your tabs data.
Badge.tsx (Copy and Paste this code. )
Props that can passed to Badges Component.
| Prop | Type | Default | Description |
|---|---|---|---|
badgeData | IBadge | Required | An object containing the badge's data like label and id. |
border | 'left' | 'right' | 'top' | 'bottom' | undefined | Specifies which side of the badge should have a border. |
borderColor | string | undefined | Sets the color of the border. |
textColor | string | '#2D3748' | Sets the text color of the badge. |
bgColor | string | '#FFFFFF' | Sets the background color of the badge. |
isRounded | boolean | true | If true, the badge will have fully rounded corners. |