Popover
Description
An inline popover of content beside its trigger.
Usage
bc_popover(
...,
id = NULL,
title = NULL,
description = NULL,
trigger_label = "Open popover",
trigger = NULL,
side = "bottom",
align = "center",
class = NULL
)
Arguments
| Argument | Description |
|---|---|
... |
Content for the popover. |
id |
String. The ID for the popover wrapper. |
title |
String or tag. A heading for the popover. |
description |
String or tag. Text shown under the heading. |
trigger_label |
String or tag. The trigger button's label. |
trigger |
A tag. A whole trigger, usually a bc_button(), in place of the default outline button. The wiring attributes are added to it. |
side |
String. Placement of the popover. One of top, right, bottom, left, inline-start or inline-end. |
align |
String. Alignment of the popover on its side. One of start, center or end. |
class |
Vector of class names for the popover content, replacing the default w-72. |
Value
A <div class="popover"> with a trigger button and the popover content.
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"
)