Skip to main content

We have released KoliBri - Public UI v4 (Next). For the LTS version, see .

Your opinion matters! Together with you, we want to continuously improve KoliBri. Share your ideas, wishes, or suggestions—quickly and easily.

Toolbar

The Toolbar component is a collection of commonly used button and link controls summarized in a compact visual form. The toolbar is typically a subset of functions found in a menu bar to reduce user effort.

<kol-toolbar _label="Label" _items='[{"_label": "Button", type="button"}, {"_href": "#", "_label": "Link", type="link"}]'> </kol-toolbar>

Example

Usage

Use the Toolbar component if you want to enable navigation of various buttons and links, e.g. to format the content of a text area. The aria-label can be set using the _label attribute. The individual functions are set in the toolbar using the _items attribute. The tabIndex is controlled by the Toolbar component. The default is always the first active element in the Toolbar.

Supported Toolbar components

  • Link
  • button

The Toolbar component is told whether it is a Link or Button component using the type attribute.

Accessibility

Keyboard controls

buttonFunction
TabFirst tab focuses on the toolbar. Second the first active element and third restores the default.
arrow keysCan be used to navigate elements in the focused toolbar.

Properties

PropertyAttributeDescriptionTypeDefault
_items (required)--Defines the functional elements of toolbar to render (e.g. kol-link, kol-button).ToolbarItemPropType[]undefined
_label (required)_labelDefines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).stringundefined
_orientation_orientationDefines whether the orientation of the component is horizontal or vertical."horizontal" | "vertical" | undefinedundefined

View example