Draft UI

Search Field

A search field allows a user to enter and clear a search query.

Installation

bash
npx @sly-cli/sly add draft-ui search-field

Examples

Default

This is the default SearchField

With Clear Button

Use SearchFieldClearButton to display a button that clear the SearchField input. By default, it will only show up when the input is not empty.