ComponentReactregistry:ui2 dependencies
SearchField
search-field
Search pill: a rounded-full text input with a leading magnifier and a trailing clear button.
Notes from the author
Use this instead of hand-rolling the pill-with-magnifier-and-clear recipe. Controlled (value/onChange) and i18n-agnostic - pass translated label, clearLabel and placeholder; label is the accessible name, since a placeholder is not a label. Pass tabbable={shown} when a HeaderStandIn keeps it mounted but collapsed, so a zero-width field never catches Tab. size sm (h-9) sits flush in dense chrome; md (h-10) matches the control baseline - applies only to variant solid (the default). variant frosted is a floating blurred pill for a bar over scrolling content, always h-12 regardless of size.
1 other registry
Similar components
Other registries' take on search-field.
@whiskeyjack