Status Dot

Small status dot in neutral, success, warning, danger and accent tones, built with cva. Place it next to labels for online, healthy or failing indicators.

src/registry/ui/status-dot.tsx/r/status-dot.json

Installation#

bash
npx shadcn@latest add @minidev/status-dot

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/status-dot.json

Usage#

tsx
import { StatusDot } from "@/components/ui/status-dot"

export function Example() {
  return (
    <StatusDot tone="success" />
  )
}

API reference#

StatusDot props
PropTypeDefault
tone"neutral" | "success" | "warning" | "danger" | "accent""neutral"

Also accepts every prop of <span>, passed through to the root element.

Dependencies#

npm

class-variance-authority

Built from

No other MiniDev files

Examples#

All alerts, toasts and empty states