A bottom drawer with drag-to-dismiss. input$<inputId> is the open state.
Usage
shad_drawer(
inputId,
...,
title = NULL,
description = NULL,
footer = NULL,
trigger = NULL,
class = NULL
)See also
shad_drawer_open(), shad_drawer_close()
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_dropdown_menu(),
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_drawer("d", trigger = shad_button("Open"), title = "Goal", "Body")
#> <div data-shad="drawer" id="d">
#> <button class="shad-btn shad-btn--default shad-drawer__trigger" type="button">Open</button>
#> <div class="shad-drawer__overlay shad-anim-overlay" hidden></div>
#> <div class="shad-drawer__content shad-anim-sheet" hidden>
#> <div class="shad-drawer__handle" aria-hidden="true"></div>
#> <div class="shad-drawer__header">
#> <div class="shad-drawer__title">Goal</div>
#> </div>
#> <div class="shad-drawer__body">Body</div>
#> </div>
#> </div>