Measured entry

ruixen-input-with-select

inputliquid-glassmotion on file

A client-side React amount input joined to a segmented currency or unit selector. It ships as a shadcn registry component but keeps its styling inline, uses Motion for entrance and spring transitions, and can create Web Audio feedback when the selection changes.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-input-with-select at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of ruixen-input-with-select at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-input-with-select 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-input-with-select
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal59.3 KB (124.7 KB build, 65.4 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A polished niche control that builds and mounts without framework helpers, but it is not drop-in for production forms. Fix the narrow-screen overflow, raise muted-text contrast, and add explicit input and selector semantics before shipping it.

Use it if

  • You need a compact amount field with a small, fixed set of currencies or units.
  • Your React interface already uses Motion and can accommodate a client component.
  • You want an uncontrolled field with selection changes reported through one callback.
  • You can tune the muted text colors and add the form semantics your product requires.

Skip it if

  • The field must fit reliably on narrow phone layouts without responsive changes.
  • You need accessible contrast and fully associated labels out of the box.
  • Your form architecture requires a controlled value, validation state, or standard select semantics.
  • You do not want Motion or optional Web Audio behavior in a basic input control.

Install

Installation record for ruixen-input-with-select
Declared dependenciesmotion
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

In a non-shadcn React project, copy the component into the app, install Motion, and render it from a client-capable entry. No shared shadcn utilities or provider are required. Disable the sound prop if Web Audio feedback is unwanted.

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 input pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.