Measured entry

tripled-floating-label-input-shadcnui

inputminimal-flatmotion on file

A client-side React text field whose label animates above the control on focus or after entry. It ships as a shadcn registry component, composes the project Input primitive, and uses React state plus Framer Motion. Its surrounding utility classes assume a Tailwind-style design system.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-floating-label-input-shadcnui at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of tripled-floating-label-input-shadcnui at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-floating-label-input-shadcnui 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 tripled-floating-label-input-shadcnui
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical1
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal66.9 KB (132.3 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 52.09s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/components/ui/input.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

Use it as a visual starting point, not a drop-in production field. It builds and mounts in the prepared harness, but needs a shadcn-style setup, overflows a narrow viewport, and leaves the visible label unassociated with the input. Fix responsiveness, labeling, and the component API first.

Use it if

  • You want a compact floating-label field and can adapt the source to your form API.
  • Your app already has shadcn-style aliases, utilities, and an Input primitive.
  • Framer Motion is already justified elsewhere in your interface.

Skip it if

  • You need an accessible field without first adding a programmatic label association.
  • The field must fit narrow layouts without revising its fixed width and generous wrapper padding.
  • You need a reusable controlled input with value, change, name, and validation props.
  • You do not want an animation dependency for a single form-field effect.

Install

Installation record for tripled-floating-label-input-shadcnui
Declared dependenciesframer-motion, react, radix-ui
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add React, Framer Motion, the expected Radix UI dependency, Tailwind utility support, an Input primitive, the at-sign path alias, and the shadcn class-merging utility under src/lib/utils. Add matching input and label identifiers, then replace the fixed sizing and padding for narrow layouts.

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.