Components

Badge (Radix UI)

A Badge is a small, visually distinct element used to display contextual metadata, such as status, category, or notifications, enhancing the clarity and organization of your design.

Loading

Installation

pnpm dlx shadcn@latest add @toui/badge

Examples

Light

Loading

Outline

Loading

Circle

Loading

Shapes

Loading

With Dot

Loading

With Icon

Loading

Remove Button

Loading

Square

Loading

Sizes

Loading

asChild

Loading

Disabled

Loading

API Reference

This component provides a customizable badge system with flexible variants, sizes, and appearances.

Badge

PropTypeDefault
variant enum secondary
appearance enum default
size enum md
shape enum default
disabled booleanfalse
asChild booleanfalse
className string

BadgeButton

PropTypeDefault
variant enum default
asChild booleanfalse
className string

BadgeDot

PropTypeDefault
className string

Credits

We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking Accept, you agree to our use of cookies.
Learn more.