menuAnchor
Modifier which should be applied to an element inside the ExposedDropdownMenuBoxScope, typically a text field or an icon within the text field. It's responsible for expanding and collapsing the menu on click, applying semantics to the component, and requesting focus.
Parameters
type
the type of element that is anchoring the menu. See MenuAnchorType.
enabled
controls the enabled state. When false
, the component will not expand or collapse the menu in response to user input, and menu semantics will be invisible to accessibility services. Note that this value only controls interactions with the menu. It does not affect the enabled state of other kinds of interactions, such as TextField's enabled
parameter.
Deprecated
Use overload that takes MenuAnchorType and enabled parameters
Replace with
menuAnchor(type, enabled)
Content copied to clipboard