Forms
Search Input
A compact search field with a leading icon, a keyboard shortcut hint and a clear button once there is a value.
Group: Forms. Exports: SearchInput. Halaska addition with no shadcn/ui equivalent.
Usage
import { SearchInput } from "./halaska-kit";
SearchInput props
valueany: The controlled value.onChange(value) => void: Called with the new value.placeholderstring(default "Search…"): Hint shown while empty.shortcutstring(default "⌘K"):styleCSSProperties: Inline style merged onto the root element.
Accessibility
- Renders a native search input. The placeholder is also set as its aria-label.
- The clear button is labelled "Clear search" and is reachable with Tab.
- The shortcut hint is display only. Binding the key is up to you.
Used in
Halaska UI · Components · Patterns · Screens · Install