Search

The pill-shaped Material search input, for a field that filters the content behind it as it is typed, such as a top app bar that swaps its title for a search box, say. It leads with a search icon unless another one is given, and takes its clear or filter actions in the trailing slot.

It is a different Material component rather than a rounded text field, so the parameters that describe a form field (label, supportingText, errorText, minLines, maxLines, markdown, position) do not apply to it, and it is rejected by the TextFieldValue overload because the Material input owns its text state.

Properties

Link copied to clipboard
Link copied to clipboard