Expanding Search

A pill that grows into a real input and stays clickable.

Navigation

Installation

bash
npx shadcn@latest add https://ui.noicess.fun/r/expanding-search.json

Props

PropTypeDefaultDescription
placeholderstring"Search"Placeholder and accessible label for the input.
widthnumber260Expanded width in pixels.
onSearch(query: string) => void-Called on every keystroke and on clear.
classNamestring-Additional classes merged with the wrapper.