Skip to content
ZikZuk UI

SearchInput

Stripe SearchField

A list's search: a compact boxed field (not the underlined form field) that lines up with the filter buttons beside it, optionally offering known values as suggestions while accepting anything typed. 16px text on phones so iOS doesn't zoom.

pnpm add @zikzuk/ui
import { SearchInput } from "@zikzuk/ui";

Searching a list

When to use

  • The filter row of a list page; keep its value in the URL.

Props

PropTypeDescription
value / onChangestring / (value) => voidControlled.
placeholderstringAlso its label unless label is given.
labelstringAccessible name.
suggestionsstring[]Known values offered while typing.
autoFocusbooleanFocus on mount.
classNamestringExtra classes on the outer element.