A container that groups related buttons together with consistent styling.
❯buridan add button groupUse the following to build the Button_group component.
from components.ui.button_group import button_groupFor manual installation, copy each of the source codes below in their respective locations.
button_group.root sets role="group".Tab to navigate between the buttons in the group.aria-label or aria-labelledby to label the button group.Set the orientation prop to change the layout.
Props used: orientation on button_group.root.
Control the size of buttons using the size prop on individual buttons.
Props used: size on button.
button_group.separator visually divides buttons within a group. outline-variant buttons don't need one (they already have a border) — other variants benefit from it for visual hierarchy.
Props used: none required beyond default button_group.separator.
Two buttons separated by a button_group.separator.
Props used: none required beyond default button_group.separator.
Wrap an input with buttons on either side.
Props used: none required — standard button_group.root composition.
A split button group with a menu as the second segment.
Props used: see the Menu docs for menu-specific props.
button_group.root(
button("Copy", variant="outline"),
button("Paste", variant="outline"),
)
button_group.root(
button("Bold", variant="ghost"),
button_group.separator(),
button("Italic", variant="ghost"),
)
Accepts *children, so any component (including interactive ones) can be rendered as label content inside a group.
button_group.text("Filter by")