ButtonToolbar components act as containers for Button components. They provide the horizontal spacing needed to properly display buttons inline.
The default toolbar has a shaded background. All buttons are placed within the toolbar as child elements. By default, buttons are aligned to the start.
Muted toolbars remove the shaded background and any spacing on the left and right so buttons will align with other page content. To create a muted toolbar, simply set the muted
property.
Use the optional ButtonToolbar.Start
, ButtonToolbar.Center
, and ButtonToolbar.End
to align the toolbar contents to the start, center, or end.
Property | Type | Default | Description |
---|---|---|---|
children | Node | Collection of Button components to be placed in the toolbar. | |
className | String | Custom classes to add to the button toolbar’s enclosing <div> tag. | |
muted | Boolean | false | Renders the toolbar in an alternate “muted” style in which background color and left and right margins are removed. |
Property | Type | Default | Description |
---|---|---|---|
children | Node | Collection of React components to be placed in the region. | |
className | String | Custom classes to be added to the <div> that defines the region. |
Property | Type | Default | Description |
---|---|---|---|
children | Node | Collection of React components to be placed in the region. | |
className | String | Custom classes to be added to the <div> that defines the region. |
Property | Type | Default | Description |
---|---|---|---|
children | Node | Collection of React components to be placed in the region. | |
className | String | Custom classes to be added to the <div> that defines the region. |