Search input preview
Search with clear, loading and results states.
free · Forms · primitive
When to use
- Use it when a product interface needs search with clear, loading and results states.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose form-field instead when a labeled email field with validation and help text is the actual interface need, rather than search input.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add https://tidalui.com/r/search-field.jsonImport components/ui/tidal.css, components/ui/search-field.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/search-field.css";
import{TidalSearchField}from"./components/ui/search-field";
export default()=><div className="tidal-scope"><TidalSearchField label={"Demo"} onValueChange={() => {}} value={"value"}/></div>;API and props
TidalSearchField.label (required)stringRequired label value accepted by this exported component.
TidalSearchField.onValueChange (required)(value: string) => voidCallback invoked when the value change interaction is proposed.
TidalSearchField.value (required)stringRequired value value accepted by this exported component.
TidalSearchField.announceboolean | undefinedOptional announce value accepted by this exported component.
TidalSearchField.descriptionstring | undefinedOptional description value accepted by this exported component.
TidalSearchField.errorstring | undefinedOptional error value accepted by this exported component.
TidalSearchField.onSearch((value: string) => void) | undefinedCallback invoked when the search interaction is proposed.
TidalSearchField.pendingboolean | undefinedOptional pending value accepted by this exported component.
TidalSearchField.resultCountnumber | undefinedOptional result count value accepted by this exported component.
TidalSearchField.rootClassNamestring | undefinedOptional root class name value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Keep field state, validation results, submission, and persistence in the host form workflow.