Badge

Displays a badge or a component that looks like a badge.

Loading...

Installation

$npx shadcn@latest add @craftdotui/craftui-badge

Anatomy

<Badge>Badge</Badge>
<BadgeRoot>Badge</BadgeRoot>

Demo

Secondary

Loading...

Outline

Loading...

Ghost

Loading...

Destructive

Loading...

Status Variants

Loading...

Sizes

Loading...

Rounded & Counters

Loading...

With Icon

Loading...

With Status Dot

Loading...

Use the render prop to render a badge as an anchor element.

Loading...

Props

Badge

Prop
Type
Default