Search Input
InputSearch-styled input with icon, clear button, and keyboard handling.
Search InputInput · Web
Loading Storybook preview…
Installation
bun add @otfdashkit/ui
Usage
Import Search Input from @otfdashkit/ui.
Code
// Search Input — Search-styled input with icon, clear button, and keyboard handling.
//
// Install:
// bun add @otfdashkit/ui
import { SearchInput } from '@otfdashkit/ui'
export function Example() {
return (
<SearchInput>
{/* your content */}
</SearchInput>
)
}Props
Props declared in the SearchInput source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| onChange | (value: string) => void | ||
| onClear | () => void | ||
| shortcut | string |