Measured entry

tripled-expanding-search-dock-shadcnui

inputminimal-flatmotion on file

A client-side React search control that morphs from an icon button into a pill-shaped form, keeps its query and open state internally, and calls an optional submit callback. It ships as a shadcn registry component styled with Tailwind theme tokens, using Framer Motion for transitions and Lucide for icons.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-expanding-search-dock-shadcnui at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-expanding-search-dock-shadcnui at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-expanding-search-dock-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-expanding-search-dock-shadcnui
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical1
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal63.7 KB (129.2 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 1.24s
error during build:
[vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-a28b3e3aa029/src/cut/components/uitripled/expanding-search-dock-shadcnui.tsx".

Verdict

A tidy, reusable interaction that builds and mounts on its own and stays contained across the tested layouts. The unnamed expand and close buttons are a release blocker for accessibility, so add explicit accessible labels before shipping it.

Use it if

  • You need a compact search affordance that expands only when someone chooses to search.
  • Your interface already uses Tailwind theme tokens and can absorb Framer Motion and Lucide.
  • An uncontrolled open state and a simple query callback fit your search flow.

Skip it if

  • You need an accessible component without first adding names to both icon-only buttons.
  • The parent must control whether the field is open or preserve the query after it closes.
  • You want a plain input without an animation dependency or automatic focus behavior.

Install

Installation record for tripled-expanding-search-dock-shadcnui
Declared dependenciesframer-motion, react, radix-ui, clsx, tailwind-merge
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, and Lucide React, configure Tailwind, and define equivalents for the border, card, and muted theme tokens. Copy the component into a client-rendered module; the declared shadcn button dependency is not imported by this source.

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.