Measured entry
ruixen-better-time-picker
switchliquid-glassmotion on file
A client-side React time picker with stepped hour and minute controls, an optional period selector, spring transitions, and optional audio feedback. It ships as a shadcn registry item but is internally self-contained, using inline styles plus Motion and the browser Web Audio API.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 1 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 59.7 KB (125.1 KB build, 65.4 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written from the component source API |
Verdict
It builds, mounts, and stays within its viewport without framework-specific helpers, but it is not ready to ship unchanged. Add accessible names to every arrow control and review the optional sound behavior before using it in production.
Use it if
- You want a compact stepped time control instead of free-form text entry.
- Your interface can support Motion and benefits from animated value changes.
- You need selectable clock formats, configurable minute steps, and a simple change callback.
Skip it if
- You need an accessible component without modifying its icon-only step controls, which currently lack discernible names.
- You need direct keyboard entry, validation, form-library integration, or native time-input semantics.
- You want to avoid an animation dependency or browser audio behavior in a small form control.
Install
| Declared dependencies | motion |
|---|---|
| Missing on install | none |
| Bare install | builds and mounts without the shadcn-style helpers |
| Provider | no provider required in the harness |
Install Motion, place the component in a client-capable React environment, and preserve its inline theme styles. Add accessible labels to the hour and minute arrow buttons. If sound is enabled, account for browser audio policies; otherwise disable it through the component prop.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/ruixenui/ruixen.comAlternatives
Other published entries for the switch pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- neu-toggleneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- clay-toggleclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.2KB
- Bare
- pass
- Prov
- NO
- ruixen-scrub-datetimeunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 22.2KB
- Bare
- pass
- Prov
- NO
- shadcn-switchunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 34.4KB
- Bare
- pass
- Prov
- NO
- hextaui-switchminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 34.5KB
- Bare
- pass
- Prov
- NO
- hextaui-tabsminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 39.0KB
- Bare
- pass
- Prov
- NO