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 a full-screen scrim in the overlay (to dismiss taps outside the card) while keeping the menu positioned inline below the trigger for correct position. The menu card fades and scales in/out with a 120ms FastOutSlowIn animation. Items can be DropdownMenuItem or MenuDivider.