Loading preview
Bookshelf
InteractiveBooks on a wooden shelf whose spines lift on hover and pull out when selected, with a matching cover.
A station clock whose needle waits at twelve; drag the minute hand to set it by hand.
npx shadcn@latest add @venusui/analog-clockRun 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/analog-clock.tsxThe code behind the preview above.
analog-clock-demo.tsx
import { AnalogClock } from "@/components/ui/analog-clock"
export default function AnalogClockDemo() {
return <AnalogClock label="Lisbon" timeZone="Europe/Lisbon" />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| timeZone | string | — | IANA time zone. Defaults to the visitor’s own. |
| label | string | — | Shown under the dial, such as a city. |
All <div> props; className sets the size.
lucide-react for icons. React 19 and Tailwind CSS v4.timeZone values.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.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.
A compact Mac-style keyboard whose keys press down when clicked, light up as you type on your own keyboard, and can sound like a mechanical keyboard.