Search documentation

Search the documentation and open a page.

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

Loading...

Installation

pnpm dlx shadcn@latest add @wirekyt/badge

Composition

[app-badge] └── content

Examples

Custom Color

Loading...

Default

Loading...

Filter Chips

Loading...

Inline

Loading...

Removable

Loading...

Sizes

Loading...

Status

Loading...

Variants

Loading...

With Icon

Loading...

API Reference

[app-badge]

Inputs

InputTypeDefaultDescription
variant"default" | "destructive" | "ghost" | "link" | "outline" | "secondary""default"Sets the visual style.
size"default" | "lg""default"Sets the badge size.

Utilities

ExportAngular API
badgeVariantsStyle recipe used to reuse the badge variants.
BadgeImportsReadonly collection containing the Angular badge directive.