Components
Components
SearchField
Search input with clear control and Escape-to-clear behavior.
newfree
Install
@hewnui/ui · hewnui
Built on React Aria SearchField. Escape clears the value; Enter can submit via
onSubmit.
Press Escape to clear.
Usage
Variants
outline (default), filled, flushed, and glass.
States
- Description helper text
- Invalid +
errorMessage - Disabled
- Clear button when the field has a value
Accessibility
- Native search semantics
- Clear button has an accessible name
- Escape clears; Enter submits when
onSubmitis provided
API reference
Props for SearchField from @hewnui/ui/search-field. Generated from component types — not hand-written.
Prop
Type