Foundation ComponentReact 18 & 19Zero Runtime CSS

Badge

Quiet context for status, categories and the details that matter.

Interactive preview

DraftReadyAction required

Usage

import { Badge } from "@devvy-ui/react";

<Badge tone="brand">Alpha</Badge>

API reference

Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:

PropTypeDefaultDescription
toneneutral | brand | dangerneutralText and border tone.

Accessibility & behavior

Platform Behavior & Guidelines

A noninteractive span. Include readable status text and avoid relying on color alone. Use a live region separately for changing status.

Source ownership

Add the audited implementation directly into your repository with the CLI:

node /path/to/devvy-ui/packages/cli/src/cli.mjs add badge

Make the source yours.

Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.

Badge.tsxREACT / TSX

Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.