🚀 Beta mode be careful of the bugs

Badge

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

Preview

The Badge component is used to display important messages to users. It comes with several sub components to structure the content effectively.

Badge
Shadwui

Installation

pnpm dlx shadcn@latest add https://shadwui.com/r/badge.json

Usage

import { Badge } from "@/components/shadwui/badge"
<Badge variant="outline">Shadwui</Badge>

Examples

01

Badge 01
Shadwui

02

Badge 02
Shadwui

03

Badge 03
Shadwui

04

Badge 04
Shadwui

05

Badge 05
Shadwui

06

Badge 06
Shadwui

07

Badge 07
Shadwui

08

Badge 08
Shadwui

09

Badge 09
Shadwui

10

Badge 10

more...

Badge 11
Badge 12
Shadwui

Options

ComponentDescriptionExample Output
defaultA badge with primary background and foreground colors.<Badge>Default Badge</Badge>
secondaryA badge with secondary background and foreground colors.<Badge variant="secondary">Secondary Badge</Badge>
destructiveA badge with destructive background and foreground colors.<Badge variant="destructive">Destructive Badge</Badge>
outlineA badge with no background and default foreground color.<Badge variant="outline">Outline Badge</Badge>

On this page