Sky Time Switch
A wide glass pill with a lake landscape inside.
When to use it
- Store hours or pickup window widget, for example "Open now, closes 21:00" or "Closed, opens 07:00"
- A dark mode switch that should be a memorable brand moment instead of an icon button
- Campaign pages that pick a time of day: delivery cutoff, booking slot, live stream schedule
Watch out
- Time is in minutes (0 to 1439); dayFrom and nightFrom are hours, and sunrise and sunset line up with them
- It displays time, it is not the source of truth for whether the shop is open; check that on the server
- The wheel scrubs time over the pill and blocks page scroll there; set wheel={false} in the middle of long pages
Let your agent add it
One copy holds the install command, when to use it, the props and the design rules. Paste it into Claude Code, Cursor or Codex.
This is a Pro block
One license unlocks every Pro block, now and in the future.
One-time $129 with a year of updates, or $19 a month. Use it in unlimited personal and client projects; installed blocks stay yours.
Install with your license
- 1. Add the SunUI Pro registry to
components.json.components.json{ "registries": { "@sunui-pro": { "url": "https://sunui.synvize.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${SUNUI_LICENSE_KEY}" } } } } - 2. Put your license key in
.env.local.$ SUNUI_LICENSE_KEY=your-license-key - 3. Install the block.
$ npx shadcn@latest add @sunui-pro/sky-time-switch
Similar blocks
- Pro
- Pro
- Pro
- Pro
- Pro





