Popover

Description

Create a panel of content that opens from a button.

Usage

bc_popover(
  ...,
  id = NULL,
  title = NULL,
  description = NULL,
  trigger_label = "Open popover",
  trigger = NULL,
  side = "bottom",
  align = "center",
  class = NULL
)

Arguments

Argument Description
... Popover content.
id String. The ID. Defaults to a random ID.
title String or tag. The title.
description String or tag. Text under the title.
trigger_label String or tag. The button's label. Defaults to "Open popover".
trigger Tag, usually a bc_button(), that opens the popover in place of the default button.
side String. Where the popover opens next to the button. One of "top", "right", "bottom" (default), "left", "inline-start" or "inline-end".
align String. Alignment of the popover along that side. One of "start", "center" (default), or "end".
class Character vector. CSS classes for the popover. Replaces the default w-72 width.

Value

An htmltools tag.

Examples

bc_popover(
  title = "Dimensions",
  description = "Set the dimensions for the layer."
)

bc_popover(
  bc_input(id = "width", label = "Width", value = "100%"),
  title = "Dimensions",
  trigger_label = "Resize"
)