Badge

Loading...

Installation

Install the component via the CLI in one command.

npx shadcn@latest add @intentui/badge

Manual installation

Use this approach if you prefer to install and wire up the component yourself instead of using the CLI.

npm install tailwind-variants

Examples

Intent

Badges come in a variety of colors: primary, secondary, success, info, warning, danger, light, dark, and light/dark. You can even use custom colors if you want.

Loading...

Shape

By default, badges are square, but you can switch to a circular shape if desired.

Loading...

Component API

The Badge component displays compact status or category text.

PropTypeDefault
classNamestring-
intent"primary" | "secondary" | "success" | "info" | "warning" | "danger" | "outline"-
isCircleboolean-