SearchField
Props
Accessibility
Labels
SearchField should ideally have a visible label above the input using the label prop. However, if need be, accessibilityLabel can be used to provide screen readers with context about this SearchField.
Be sure to also specify (and localize) a string for the accessibilityClearButtonLabel.
Variants
Visible label
When specified, label adds a label above the SearchField. If label is specified, accessibilityLabel can be an empty string.
Sizes
There are 2 sizes available: md (default) and lg.
Medium (md)
Large (lg)
Error
An errorMessage can be specified if needed.
Invalid search term, please avoid special characters.