Skip to content
SevenOne

Search documentation

Search pages and components

Badge

A short label for status or category. SevenOne adds Success, Warning and Info, each 7:1 on its own background.

Installation

npx shadcn@latest add @sevenone/badge

Usage

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

Examples

Variants

DefaultSecondaryOutlineDestructiveSuccessWarningInfo
<Badge>Default</Badge>
<Badge variant="secondary">Secondary</Badge>
<Badge variant="outline">Outline</Badge>
<Badge variant="destructive">Destructive</Badge>
<Badge variant="success">Success</Badge>
<Badge variant="warning">Warning</Badge>
<Badge variant="info">Info</Badge>

Accessibility

  • Status is never color alone: the word (or an icon) carries the meaning.
  • Text is 16px and 7:1 on every variant.