Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
A small tinted label whose counts roll like an odometer.
npx shadcn@latest add ikislay/pixel-ui/badgeimport { Badge } from "@/components/ui/badge"export function Demo({ unread }: { unread: number }) {return <Badge tone="brand">{unread}</Badge>}
1// Loading…
Options you can pass to customize this component.
toneneutralbrandsuccesswarningdangerThe tint.
dotbooleanShows a pinging dot before the text, for live status.
childrenReactNodeThe label. A whole number rolls digit by digit when it changes.
classNamestringMerged onto the root element.