Examples
Default
With Label
All States
Text Overflow
With Clear Button
Props
SearchField
A text input field with a search icon and optional clear button.Trailing interactive element pinned to the right edge — typically a
Chip or Button (the “with button” field type). Reduces the right padding so the control sits flush, and clicks on it do not steal focus from the input.Debounce delay in milliseconds for the onChange callback. When set, the input maintains internal state for responsive typing while debouncing onChange to the parent.
Fixed, non-editable label pinned inside the left edge of the field — for a prefix such as a currency symbol or country code.
Minimum number of characters required before onChange fires. The input still updates visually, but onChange is suppressed until the threshold is met. Clearing always fires onClear regardless.
Callback fired when the clear button is clicked. If provided, a clear button appears when the field has a value.
Fixed, non-editable label pinned inside the right edge of the field — for a unit or suffix such as a currency code or domain.
Exported types
Also exported from@fanvue/ui: SearchFieldProps, SearchFieldSize.
Setup: Installation · Theming