Loading preview
Analog Clock
Data displayA station clock whose needle waits at twelve; drag the minute hand to set it by hand.
A wind-up kitchen timer: twist the dial to set it and it ticks back to zero, then rings.
npx shadcn@latest add @venusui/kitchen-timerRun 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/kitchen-timer.tsxThe code behind the preview above.
kitchen-timer-demo.tsx
import { KitchenTimer } from "@/components/ui/kitchen-timer"
export default function KitchenTimerDemo() {
return <KitchenTimer defaultMinutes={5} />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| max | number | 60 | Minutes on the dial. |
| defaultMinutes | number | 0 | Starting time. |
| onDone | () => void | — | Called when it rings. |
All <div> props.
defaultMinutes to start it running straight away.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.
Books on a wooden shelf whose spines lift on hover and pull out when selected, with a matching cover.
A messaging conversation that plays out with typing indicators; viewers can send replies too.