Skip to Content
Columbus

Badge

A small status indicator or label component.

DefaultSecondaryOutlineDestructiveInfoSuccessWarningError

Installation

pnpm dlx shadcn@latest add @columbus/badge

Usage

import { Badge } from "@/components/ui/badge";

<Badge variant="success">Active</Badge>;

Sizes

SmallDefaultLarge

With an icon

Icons are sized for you. Hide decorative icons from screen readers with aria-hidden. Add rounded-full for a count.

Verified7

Use render to make a link look like a badge. It keeps link semantics and gets hover styles.

API reference

Renders a <span> and accepts every native <span> attribute.

Prop

Type

You can also style any element as a badge with badgeVariants({ variant, size }).

On this page