We are currently in alpha version.
Please expect changes. If you find any issues, please report them on our github.
Badge
Badges are compact UI elements that highlight key information, statuses, or counts. They provide visual cues for notifications, categorization, or emphasis, ensuring important details stand out at a glance.
Basic badge
html
Optional properties
Property | Type | Description |
---|---|---|
|
| Controls badge's variant. |
|
| Defines the badge's type. |
| string | Allows overriding default styles by passing Tailwind CSS classes. Utilize the |
Global configurations
A list of global styles, including shape, size, color, font sizes, font weights, and letter spacing can be provided via themeLibrary
in the provideZapOption
provider. If you have multi theme setup, you can also provide theme specific colors. These apply to all default variants through out the app unless component level styles are provided.
Example
app.config.ts
Colors
You can provide each of these colors for different themes that you use
Property | Description |
---|---|
| Background color of the badge. |
| Text color of the badge. |
| Border color of the badge. |
Other styles
You can provide a bunch of other styles, that are not theme based but rather generic
Property | Description |
---|---|
| Defines the radius of the badge's corners. |
| Left padding of the badge. |
| Right padding of the badge. |
| Top padding of the badge. |
| Bottom padding of the badge. |
| Padding around the badge's content. |
| Width of the badge. |
| Height of the badge. |
| Font size of the badge's text. |
| Font weight of the badge's text. |
| Line height of the badge's text. |
| Letter spacing of the badge's text. |
| Transforms the badge's text (e.g., uppercase, lowercase). |