Measured entry

originui-comp-32

inputminimal-flat

A floating-label email input that moves its label into the field border on focus or after text is entered. It ships as a shadcn registry component, using React's useId, an Origin UI Input primitive, Tailwind utility classes, and the clsx and tailwind-merge helpers pulled in by that primitive.

Specimen
Harness screenshot of originui-comp-32 at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of originui-comp-32 at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of originui-comp-32 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 originui-comp-32
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal30.1 KB (95.6 KB build, 65.5 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A small, focused pattern that builds and mounts cleanly, including outside a shadcn scaffold. It is a reasonable pick for Tailwind forms, but fix the muted label contrast and verify the containing layout at narrow widths before shipping.

Use it if

  • You need a compact email field whose label remains visible after the user starts typing.
  • Your form already uses Tailwind theme tokens and can adopt the Origin UI Input primitive.
  • You want the label and control linked with a generated React identifier.

Skip it if

  • Your mobile layout cannot tolerate a fixed-width demo wrapper; the narrow viewport test overflowed.
  • You must ship with passing contrast checks without adjusting the muted label color.
  • You need a generic text field without changing the hard-coded email type or label copy.

Install

Installation record for originui-comp-32
Declared dependenciesclsx, tailwind-merge
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

In a non-shadcn project, add React, Tailwind CSS with the expected background, foreground, muted, and input theme tokens, the Origin UI Input primitive, clsx, tailwind-merge, and an alias or relative import for the primitive. Ensure your Tailwind setup supports the relational variants used by the label.

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.

License
MIT
Record published
2026-08-16

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.