Badge
A short label for a status or a count.
Status variants are tints of their color, so a row of them stays calm. Wrap the text in a link to make a badge clickable.
Dependencies
What it's built from and what's built from it in Base, read from the imports in its source.
| Uses | Textprimitive |
|---|---|
| Used by | Nothing yet. |
| Packages | tailwind-variants@4.1.0 |
Installation
Set the project up for Base once first, as Getting started shows. Then add it with the CLI, or by hand.
With the CLI
Manually
Install its packages:
Add the components it uses first, listed under Dependencies.
Then copy the source:
API reference
Generated from Base's types. Props marked ours are added here; the rest come from the ui-sdk part it wraps. Every part also accepts its element's native attributes.
Badge
A short label for a status or count. Render it as a link with an <a> of your own around its text.
- variantours
What the badge says about its subject. The status variants are tints.
Type NonNullable<"primary" | "destructive" | "warning" | "success" | "secondary" | "outline">