Actions & display
Badge
Short status labels and tags, in status colours or the theme’s six palette colours.
Status
Paid
Pending
Overdue
Draft
Pro
<span class="og-badge og-badge--success">Paid</span>
<span class="og-badge og-badge--warning">Pending</span>
<span class="og-badge og-badge--danger">Overdue</span>
<span class="og-badge og-badge--accent">Draft</span>
<span class="og-badge og-badge--accent og-badge--solid">Pro</span>Palette
Design
Marketing
Finance
Ops
Research
Support
<span class="og-badge og-badge--1">Design</span>
<span class="og-badge og-badge--2">Marketing</span>
<span class="og-badge og-badge--3">Finance</span>
<span class="og-badge og-badge--4">Ops</span>
<span class="og-badge og-badge--5">Research</span>
<span class="og-badge og-badge--6">Support</span>React
import { Badge } from '@og-ui/react';
<Badge variant="success">Paid</Badge>
<Badge variant={3}>Finance</Badge>
<Badge variant="accent" solid>Pro</Badge>In every theme
Clean SaaS
Paid
Pending
Overdue
Draft
Pro
Glassmorphism 2.0
Paid
Pending
Overdue
Draft
Pro
Liquid glass
Paid
Pending
Overdue
Draft
Pro
Neumorphism / Soft UI
Paid
Pending
Overdue
Draft
Pro
Claymorphism
Paid
Pending
Overdue
Draft
Pro
Neubrutalism
Paid
Pending
Overdue
Draft
Pro
Aurora / mesh gradient
Paid
Pending
Overdue
Draft
Pro
Keyboard and screen readers
- Not focusable. Don’t make a badge the only way to tell a state: say it in text too.
- --solid is meant for --accent; other colours with --solid aren’t contrast-checked.
Install
npx @og-ui/cli add badge
npx @og-ui/cli add badge --react # with the React component