Skip to content
Klarhimmel UI

Status dot

Needs your OK
npx shadcn add https://ui.klarhimmel.com/r/status-dot.json
DetailsAbout, 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
status-dot.tsx
import { Theme } from '@/components/klarhimmel/theme/style';
import { StatusDot } from '@/components/klarhimmel/ui/status-dot';

export default function Example() {
  return (
    <Theme theme="brand">
      <StatusDot tone="attention">Needs your OK</StatusDot>
    </Theme>
  );
}

Import

Import

import { StatusDot } from '@/components/klarhimmel/ui/status-dot';
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

PropTypeDefaultDescription
tone'open' | 'active' | 'attention' | 'done' | 'warning' | 'danger''open'open is a ring (not started), attention adds a halo (waits on the reader).
childrenReactNoderequiredRequired. The status in words.
hideLabelboolean-Keeps the word for screen readers only.
classNamestring-Extra classes, merged after the component's own.