Badge
Badge component is used to render a badge in the user interface this can be used as a status indicator
Usage#
Trial
Success
Danger
Warning
Information
Default
Code#
When to use#
These badges are indicators they denote the status of somenthing, here are some examples on when to use them.
Trial
- Trial, new, helpSuccess
- Success, completed, resolvedDanger
- Danger, rejected, issueWarning
- Warning, alert, attentionInformation
- Information, note, tipDefault
- Beta, default, disabledAPI#
| Prop | Type | Possible values | Default Value |
|---|---|---|---|
| color | string | "green", "red", "blue", "yellow", "purple" and "default" | default |
| label | string | Any string | "" |
| showClose | boolean | true and false | false |
| onClose | ()=>void | - | - |
Built by Akshay 🤙