SearchInput
Search input with clear affordance and app/dashboard variants.
Quick Preview
Usage
<SearchInput placeholder="Search homes" />Examples
Default SearchInput
Use this as the starting point for SearchInput. Keep product data, routing, fetching, and authorization logic in the consuming app.
Props
| Prop/API | Type | Default | Description |
|---|---|---|---|
variant | `"dashboard" | "app"` | "app" |
wrapperClassName | string | - | Class override for the input group wrapper. |
onClear | () => void | - | Called when the clear button is activated. |
className | string | - | Local layout or spacing overrides. |
| native/root props | React component props | - | Passed through to the underlying root or primitive. |
Accessibility
- Provide visible labels or accessible names for interactive controls.
- Preserve the component-provided focus, keyboard, disabled, and invalid-state behavior.
- Do not communicate state with color alone; include text, icons, or helper copy.