Loading preview
Analog Clock
Data displayA station clock whose needle waits at twelve; drag the minute hand to set it by hand.
A colored status indicator with a label and an optional live pulse.
npx shadcn@latest add @venusui/status-dotRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/status-dot.tsxThe code behind the preview above.
status-dot-demo.tsx
import { StatusDot } from "@/components/ui/status-dot"
export default function StatusDotDemo() {
return (
<div className="flex flex-wrap items-center gap-5">
<StatusDot status="online" pulse />
<StatusDot status="away" />
<StatusDot status="busy" />
<StatusDot status="offline" />
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| status | "online" | "busy" | "away" | "offline" | — | Status to show. Required. |
| label | string | false | status name | Visible text; false keeps it for screen readers only. |
| pulse | boolean | false | Pulse the dot. |
All <span> props except children.
STATUS map.animate-ping; check reduced motion isn’t on.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A station clock whose needle waits at twelve; drag the minute hand to set it by hand.
Overlapping avatars with a +N counter that spread apart on hover.
Books on a wooden shelf whose spines lift on hover and pull out when selected, with a matching cover.