Display UI

Badge

A compact element used to display counts, labels, or statuses. Great for notifications, tags, or progress indicators.

Badge

Installation

npx shadcn@latest add https://display-ui.vercel.app/r/Badge

Usage

import { Badge } from "@/components/display-ui/Badge"
<Badge>Badge</Badge>

API

Badge Props

For Badge Component

AttributeTypeDescriptionDefault
variant"primary" | "danger" | "success" | "warning"Controls the visual style and color scheme of the badge."primary"
radius"sm" | "md" | "lg" | "pill"Controls the border radius of the badge."md"
classNamestringAdditional CSS classes to customize the badge styling.-

Examples

Default

BadgeBadgeBadgeBadgeBadge

Warning

BadgeBadgeBadgeBadgeBadge

Success

BadgeBadgeBadgeBadgeBadge

Danger

BadgeBadgeBadgeBadgeBadge

Credits

This component is inspired by Rehman Kalawant Design Shared On Github.

On this page