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.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-better-time-picker at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-better-time-picker at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-better-time-picker at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for ruixen-better-time-picker
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical1
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal59.7 KB (125.1 KB build, 65.4 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten 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

Installation record for ruixen-better-time-picker
Declared dependenciesmotion
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno 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.

Alternatives

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.