Dialog Trigger Button

Description

Create a button that opens a dialog.

Usage

bc_dialog_trigger(dialog_id, ..., aria_label = NULL)

Arguments

Argument Description
dialog_id String. The ID of the dialog to open.
... Tag attributes and content, such as the label.
aria_label String. Accessible name for the button. Set it when the button has no visible text, such as an icon-only button.

Value

An htmltools tag.

Examples

bc_dialog_trigger("terms-dialog", class = "btn", "Open Dialog")

bc_dialog(
  id = "terms-dialog",
  title = "Terms",
  description = "The dialog the button above opens."
)

Terms

The dialog the button above opens.