Status dot
Needs your OK
npx shadcn add https://ui.klarhimmel.com/r/status-dot.jsonCopy for AIDetailsAbout, usage, props and more
A status as a small dot and a word, for rows, cards and lists where a Badge would be too loud.
Preview
- Up next
- In progress
- Needs your OK
- Due tomorrow
- Payment failed
- Done
Import
Import
- Files
- status-dot.tsx, in components/klarhimmel/ui/. With it: theme, utils.
- Render in
- Render it inside <Theme>, once near the root of your app. Tokens and fonts are scoped to it, so outside it the component is unstyled.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
tone | 'open' | 'active' | 'attention' | 'done' | 'warning' | 'danger' | 'open' | open is a ring (not started), attention adds a halo (waits on the reader). |
children | ReactNode | required | Required. The status in words. |
hideLabel | boolean | - | Keeps the word for screen readers only. |
className | string | - | Extra classes, merged after the component's own. |