Skip to main content

Toolbar

Use cases:

  • As a container for grouping a set of controls

Example

ButtonOption 1Second optionOption 3OneTwoThree

Declaration

<rapid-toolbar></rapid-toolbar>

Usage

@customElement({
name: 'my-element',
template: html`
<rapid-toolbar>
<rapid-button>Button</rapid-button>
<rapid-select>
<rapid-option>Option 1</rapid-option>
<rapid-option>Second option</rapid-option>
<rapid-option>Option 3</rapid-option>
</rapid-select>
<rapid-radio-group>
<rapid-radio checked="">One</rapid-radio>
<rapid-radio>Two</rapid-radio>
<rapid-radio>Three</rapid-radio>
</rapid-radio-group>
</rapid-toolbar>
`,
})
export class MyElement extends GenesisElement {
}

API

Property and attribute binding examples for Genesis Component syntax.

NameTypeDescriptionExample
orientationToolbarOrientationThe orientation of the toolbar, horizontal or vertical. Default: horizontal
<rapid-toolbar orientation="horizontal">

Properties

This component doesn't have any properties which are not also controlled via attributes.

Slots

SlotUse
startContent which can be provided before the slotted items
endContent which can be provided after the slotted items
labelThe toolbar label

Parts

PartDescription
positioning-regionThe element containing the items, start and end slots

Events fired

No events fired.

Events listened to

This component doesn't listen to any events.