Button group
Importing
Add rh-button-group to your page with this import statement:
<script type="module">
import '@rhds/elements/rh-button-group/rh-button-group.js';
</script>
Copy to Clipboard
Copied!
Wrap lines
Overflow lines
To learn more about installing RHDS elements on your site using an import map read our getting started docs.
Usage
<rh-button-group>
<rh-button variant="primary">Save</rh-button>
<rh-button variant="secondary">Cancel</rh-button>
<rh-button variant="tertiary">More</rh-button>
</rh-button-group>
<script type="module">
import "@rhds/elements/rh-button/rh-button.js";
import "@rhds/elements/rh-button-group/rh-button-group.js";
</script>
Copy to Clipboard
Copied!
Wrap lines
Overflow lines
rh-button-group
A button group visually organizes multiple related buttons into a single collection.
| Slot Name | Summary | Description |
|---|---|---|
|
Place |
| Attribute | DOM Property | Description | Type | Default |
|---|---|---|---|---|
|
|
orientation |
Sets the orientation of the button group |
|
|
| Token | Summary | Copy |
|---|---|---|
--rh-space-lg
|
|
|
--rh-space-md
|
|
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.