Skip to contents

The badge() component displays additional information for an object in a compact way and without leaving the page. The Popover can contain various UI elements, such as fields, tables, images, and charts. It can also include actions in the footer.

See the official documention for popover, for all the correct props.

Examples

button(
  "popoverBtn",
  "Open Popover"
)
Open Popover

popover(
  id = "popover",
  "Some content",
  button("popoverClose", "Close")
)
Some content Close
observeEvent(input$popoverBtn, {
  popover_open(
    "popover", # id of popover
    "popoverbtn" # id element to attach popover to
  )
})

observeEvent(input$popoverClose, {
  popover_close("popover")
})