Skip to main content

DropdownMenu

Function DropdownMenu 

Source
pub fn DropdownMenu(
    state: Rc<MenuState>,
    overlay: OverlayHandle,
    modifier: Modifier,
    trigger: View,
    items: Vec<DropdownMenuEntry>,
    config: DropdownMenuConfig,
) -> View
Expand description

M3 Dropdown Menu anchored to a trigger element.

Renders as a single overlay entry with a transparent full-screen scrim and positioned card, matching Compose’s Popup behavior. The card is bounded in height so vertical_scroll activates when content overflows.