Button Group
Description
Create a group of related buttons joined into one control.
Usage
bc_button_group(..., orientation = "default", aria_label = NULL, class = NULL)
bc_button_group_separator()
Arguments
| Argument | Description |
|---|---|
... |
Buttons and other controls, with bc_button_group_separator() between them for a divider. |
orientation |
String. "default" for a row or "vertical" for a column. |
aria_label |
String. Accessible name for the group. |
class |
String. Extra CSS classes. |
Value
An htmltools tag.
Details
Wrap plain text in htmltools::span() to show it as a static segment.
Examples
bc_button_group(
bc_button("Archive", variant = "outline"),
bc_button("Report", variant = "outline"),
aria_label = "Message actions"
)
bc_button_group(
bc_button("Copy", variant = "secondary", size = "sm"),
bc_button_group_separator(),
bc_button("Paste", variant = "secondary", size = "sm")
)