Button Group

Button groups can be used to group related buttons into sections.

Left Center Right
Left Center Right

Left Center Right

Left Center Right
Top Middle Bottom
Add Cut Copy Paste
import '@ods/components/web.button-group';

Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.

Slots

NameDescription
(default)One or more `<ods-button>`, `<ods-icon-button>`, or `<ods-segmented-item>` elements to display in the button group.

Properties

Please note, both DOM properties and HTML attributes are shown in the table below. Unless otherwise specified, the property and attribute names are identical.

Property/AttributeReflectsTypeDefault
disableRole
booleanfalse
label
string''
direction
'horizontal' | 'vertical''horizontal'
gap
booleanfalse

Parts

NameDescription
baseThe component's base wrapper.

Search