randomseeds logo
Random Design System

Search Input

A text input with a search icon and clearable value, designed for filtering and search interactions.

Default

Custom Placeholder

Disabled

Usage

Use SearchInput for client-side filtering, such as sidebar navigation, data tables, or command palettes.

The clear button appears automatically when the input has a value. Clicking it clears the value and refocuses the input.

Props

PropTypeDefaultDescription
valuestringControlled input value
onValueChange(value: string) => voidCallback when value changes
placeholderstringPlaceholder text
wrapperClassNamestringClass name for the outer wrapper div
disabledbooleanfalseDisables the input