Badge playground
An inline category label with six semantic tones and soft or outline styling.
Preview
Release candidate
Props editor
State matrix
| Variant | Default |
|---|---|
| soft / neutral | Release candidate |
| soft / accent | Release candidate |
| soft / success | Release candidate |
| soft / warning | Release candidate |
| soft / danger | Release candidate |
| soft / info | Release candidate |
| outline / neutral | Release candidate |
| outline / accent | Release candidate |
| outline / success | Release candidate |
| outline / warning | Release candidate |
| outline / danger | Release candidate |
| outline / info | Release candidate |
Published example
API referenceimport { Badge } from '@ancrel/ui'
import '@ancrel/tokens/css'
import '@ancrel/ui/styles.css'
export default function App() {
return (
<section aria-label="Document metadata">
<h2>Design notes</h2>
<Badge tone="accent">Internal</Badge>{' '}
<Badge variant="outline">Markdown</Badge>
</section>
)
}