A horizontal navigation bar with animated dropdown panels. Not a Shiny input by default.
Usage
shad_navigation_menu(inputId = NULL, ..., class = NULL)
shad_navigation_menu_item(label, ..., href = NULL)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_dropdown_menu(),
shad_hover_card(),
shad_menu_parts,
shad_menubar(),
shad_message_scroller(),
shad_pagination(),
shad_popover(),
shad_resizable(),
shad_scroll_area(),
shad_sheet(),
shad_sidebar_layout(),
shad_tabs(),
shad_tooltip()
Examples
shad_navigation_menu("nav",
shad_navigation_menu_item("Docs", href = "#"),
shad_navigation_menu_item("Components", htmltools::a(href = "#", "Dialog")))
#> <nav class="shad-nav-menu" data-shad="navigation-menu" id="nav" aria-label="Main">
#> <ul class="shad-nav-menu__list">
#> <li>
#> <a class="shad-nav-menu__link" href="#">Docs</a>
#> </li>
#> <li data-shad-nav-item>
#> <button type="button" class="shad-nav-menu__trigger" data-state="closed">
#> Components
#> <svg class="shad-nav-menu__chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
#> </button>
#> <div class="shad-nav-menu__panel" hidden>
#> <div class="shad-nav-menu__grid">
#> <a href="#">Dialog</a>
#> </div>
#> </div>
#> </li>
#> </ul>
#> <div class="shad-nav-menu__viewport" hidden></div>
#> </nav>