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.

Icon

With the help of the Icon component, icons from integrated icon fonts can be displayed at any position. The output of the icon can be controlled using the _icon attribute and is made barrier-free using the _label attribute. By default the output is as an inline element.

Currently the icons are supported by .

Es ist wichtig, dass in der Rahmenseite (index.html) die CSS-Dateie(n) der Icon-Font(s) eingebunden ist/sind.

Construction

The Icon component is created via the HTML tag kol-icon.

Code

<kol-icon _label="Zu Hause" _icons="codicon codicon-home"></kol-icon>

Example

Icons

The property _icons expects a string with the class names of the icons to be shown (e.g.: _icons="codicon codicon-home).

Accessibility

It is important for context-relevant graphics to be labeled.

Labels

A context-relevant icon must be labeled using the _label property.

Properties

PropertyAttributeDescriptionTypeDefault
_icons (required)_iconsDefines the icon classnames (e.g. _icons="fa-solid fa-user").stringundefined
_label (required)_labelDefines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).stringundefined

Shadow Parts

PartDescription
"icon"Ermöglicht das Styling des inneren Icons.

View example

Live editor

Examples