A rich floating panel anchored to a trigger. Bind the open state by passing
inputId (otherwise it is a purely client-side popover).
Arguments
- inputId
Optional input id (binds the open state when set).
- trigger
The tag that toggles the popover.
- ...
Popover panel content.
- side
"bottom"(default),"top","right","left".- align
"center"(default),"start","end".- title
Optional accessible title (unused slot, reserved).
- class
Extra CSS classes.
See also
shad_popover_open(), shad_popover_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_drawer(),
shad_dropdown_menu(),
shad_hover_card(),
shad_menu_parts,
shad_menubar(),
shad_message_scroller(),
shad_navigation_menu(),
shad_pagination(),
shad_resizable(),
shad_scroll_area(),
shad_sheet(),
shad_sidebar_layout(),
shad_tabs(),
shad_tooltip()
Examples
shad_popover("p", trigger = shad_button("Open"), "Panel content")
#> <div data-shad="popover" data-side="bottom" data-align="center" id="p" style="display:inline-block">
#> <button class="shad-btn shad-btn--default shad-popover__trigger" type="button">Open</button>
#> <div class="shad-popover__content shad-anim-pop" hidden>
#> <div class="shad-popover__arrow" aria-hidden="true"></div>
#> Panel content
#> </div>
#> </div>