Skip to content

ButtonToolbar

Combines button groups into one toolbar, Bootstrap’s btn-toolbar: a flex row that wraps. The root gets role="toolbar": give it an aria-label. The toolbar adds no space between its children, so add a gap class such as gap-2.

An input group placed in the toolbar keeps its natural width instead of stretching:

Flex utilities lay the groups out, for example justify-content-between to push them to both ends:

The component has no props. Other attributes go to the root <div class="btn-toolbar" role="toolbar">: a class is added to btn-toolbar, a role replaces toolbar.

Block Default
content Empty: the children, the button groups