A button-triggered menu. input$<inputId> is the value of the last activated
item. Compose contents from the shad_menu_parts.
See also
Other shadshiny tier-3 components:
shad_accordion(),
shad_alert_dialog(),
shad_carousel(),
shad_collapsible(),
shad_command(),
shad_command_palette(),
shad_context_menu(),
shad_dialog(),
shad_drawer(),
shad_hover_card(),
shad_menu_parts,
shad_menubar(),
shad_message_scroller(),
shad_navigation_menu(),
shad_pagination(),
shad_popover(),
shad_resizable(),
shad_scroll_area(),
shad_sheet(),
shad_sidebar_layout(),
shad_tabs(),
shad_tooltip()
Examples
shad_dropdown_menu("m", trigger = shad_button("Open"),
shad_menu_label("My Account"), shad_menu_separator(),
shad_menu_item("profile", "Profile", shortcut = "\u21e7\u2318P"))
#> <div data-shad="dropdown-menu" data-align="start" id="m" style="display:inline-block">
#> <button class="shad-btn shad-btn--default shad-menu__trigger" type="button">Open</button>
#> <div class="shad-menu__content shad-anim-pop" hidden>
#> <div class="shad-menu__label">My Account</div>
#> <div class="shad-menu__separator"></div>
#> <button type="button" class="shad-menu__item" data-value="profile">
#> Profile
#> <span class="shad-menu__shortcut">⇧⌘P</span>
#> </button>
#> </div>
#> </div>