Search Filter

Search

About this component

Search Filter

Text search input with a leading icon for keyword filtering. Debounce in the consumer if you fetch on change.

Usage

The import and the props worth knowing about, in one place.

import { FilterSearch } from "@/components/beste/component/filter-search";

<FilterSearch
  label="Search"
  placeholder="Search products"
  onChange={(value) => console.log("query:", value)}
/>

Props

Read from the component's own type, so this cannot drift from what it accepts.

PropTypeDefaultDescription
labelstring—Optional group heading rendered above the input
placeholderstring—
valuestring—Controlled text; omit to let the component manage its own state
defaultValuestring—Initial text when uncontrolled
onChange(value: string) => void—
classNamestring—

More Filter components

View all Filter

Deals

Gender

Size