-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Open
Labels
scope: autocompleteChanges related to the autocomplete. This includes ComboBox.Changes related to the autocomplete. This includes ComboBox.type: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.
Description
Summary
Autocomplete component should support changing of the root element by exposing the component prop or by exposing the root property in the slotProps prop, similarly to chip
| chip: SlotProps< |
Examples
https://stackblitz.com/edit/vitejs-vite-nwrkid3s?file=src%2FApp.tsx%3AL14
Motivation
This is useful when customizing the semantics of Autocomplete from within a theme (without having to deliver wrapper components). I.e. having a context that wraps the input is useful when adding group semantics with associated label (context can be used to determine if the TextField is rendered within Autocomplete w/o needing to lookup DOM structure/class names).
Search keywords: autocomplete, root element, component prop
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
scope: autocompleteChanges related to the autocomplete. This includes ComboBox.Changes related to the autocomplete. This includes ComboBox.type: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.