A live clock widget that frames a corner of a large dial. The view pans with the hour hand and the edges fall out of focus. Set a time zone to show any city.
pnpm dlx shadcn@latest add @componentry/lens-clockDependencies: framer-motion
| Prop | Type | Default |
|---|---|---|
timeZone | stringIANA time zone, such as "America/Los_Angeles". Omit it to use the viewer's zone. The clock stays live either way. | — |
time | DateFixed moment to display, shown in timeZone. Omit it to keep the clock live. | — |
theme | "light" | "dark"Force a palette. Omit it to follow the surrounding dark class. | — |
className | stringAdditional styles. Defaults to w-72. | — |
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.
import { LensClock } from "@/components/ui/lens-clock"
export default function Demo() {
return <LensClock />
}