Button Group
Description
Joins related controls into a single button-group shell.
Usage
bc_button_group(..., orientation = "default", aria_label = NULL, class = NULL)
bc_button_group_separator()
Arguments
| Argument | Description |
|---|---|
... |
The group's children: controls and bc_button_group_separator(). |
orientation |
String. One of default or vertical. default writes no attribute. |
aria_label |
String. Accessible name for the group. |
class |
String. Extra classes for the shell. |
Value
A <div> tag.
Details
A <span>, <label> or <output> child is a static segment; an <hr> is a divider.
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")
)