Skip to content

    Browse components

    Badge

    Compact status label in six variants with an optional live dot, pulse ring and a glinting shine sweep.

    Open
    Customize

    default
    secondary
    outline
    success
    warning
    destructive
    sm
    md

    Installation

    npx shadcn@latest add @glint-ui/badge

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/badge.json

    Usage

    import { Badge } from "@/components/ui/badge";
    
    <Badge variant="success" pulse>Operational</Badge>

    Props

    PropTypeDefaultDescription
    childrenstring"Live"Badge text.
    variant"default" | "secondary" | "outline" | "success" | "warning" | "destructive""default"Color scheme.
    size"sm" | "md""md"Height 20 or 24 px.
    dotbooleanfalseLeading status dot.
    pulsebooleanfalsePulsing ring on the dot (implies dot).
    shinebooleanfalsePeriodic light sweep.
    classNamestring—Extra classes for the root element.