Skip to content

Feedback

Badge

Compact label for counts or status.

import { Badge } from '@var-ui/react';
BetaLiveReviewFailed
Newv2.4Docs

Badge

Compact label for counts or status.

Examples

Default

Beta
Demo.tsxTSX
import { Badge } from '@var-ui/react';

<Badge tone="accent">Beta</Badge>

Colors

tone means status (success, warning, danger). For identity, such as an agent role, an event kind or a label, use color with any name from the base palette: blue, red, sage and the rest. Each color adapts to color mode and is readable as text on the surface (WCAG AA), in every appearance. StatusDot takes color too.

rosecrimsonrubyredtomatoorangeambergoldyellowlimegrassgreenemeraldjadephthalotealmintcyanskyblueindigoirisvioletpurpleplumfuchsiapinkbronzebrowntaupestonesandolivesagemistslategrayzincmauveneutral
Demo.tsxTSX
import { Badge } from '@var-ui/react';

<Badge color="violet">Planner</Badge>
<Badge color="teal">Reviewer</Badge>
<Badge color="sage" appearance="solid">Worker</Badge>

For chart series, color.categorical.1–8 lists eight of these hues in an order where neighbours differ most.

Props

Accessibility

Built on React Aria Components where applicable.