Skip to content

Holo Button Group

The <holo-button-group> component groups related buttons together with role="group" semantics and a shared visual gap. Use the orientation prop to lay buttons out horizontally or vertically, and the label prop to give the group an accessible name.

<holo-button-group label="Text formatting">
<holo-button label="Bold" variant="secondary"></holo-button>
<holo-button label="Italic" variant="secondary"></holo-button>
<holo-button label="Underline" variant="secondary"></holo-button>
</holo-button-group>
<holo-button-group label="Actions" orientation="vertical">
<holo-button label="Save" variant="primary"></holo-button>
<holo-button label="Cancel" variant="secondary"></holo-button>
</holo-button-group>

| Property | Attribute | Description | Type | Default | | ------------- | ------------- | -------------------------------------------- | ---------------------------- | -------------- | | orientation | orientation | The layout direction of the grouped buttons. | "horizontal" \| "vertical" | "horizontal" | | label | label | Optional accessible name for the group. | string | undefined |

| Slot Name | Description | | --------- | --------------------------------------------------- | | (default) | holo-button/holo-icon-button elements to group. |