datui
Color scheme

Data display

Badge

Tiny dot indicator placed next to a title or icon.

import { Badge } from "datui";

Playground

<Badge appearance="accent" />

Examples

Appearances

Updates NewAlerts Important

Accessibility

  • The dot is decorative; children are rendered visually hidden as its accessible text.

API

Badge

Tiny dot indicator placed next to a title or icon.

PropTypeDefaultDescription
appearance"accent" | "negative"accent`accent` marks something new, `negative` is a prominent red dot.
childrenstring—Screen-reader-only label, e.g. "new". The dot itself is decorative.
classNamestring—