SearchInput

A search input type component.

Import#

import { SearchInput } from '@saas-ui/react'

Usage#

The SearchInput composes the Input component with a search icon and reset button.

Basic#

Default value#

Custom icons#

You can pass custom icons to the icon and resetIcon props.

Controlled#

You can control the value of the input by passing the value and onChange props. You can also pass an onReset prop to handle the reset button click.

Was this helpful?