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.

SkipNav

#SkipNav

A hidden navigation can be created using the SkipNav component. It is used to enable visually impaired people to skip over side areas. It only becomes visible after clicking the Tab key.

Construction

Code

<kol-skip-nav
_label="Ein versteckter Link"
_links="[{'_label':'Navigation','_href':'#nav'},{'_label':'Inhalt','_href':'#main'},{'_label':'Kontakt','_href':'#kontakt'},{'_label':'Links','_href':'#links'}]"
></kol-skip-nav>

Example

To see the SkipNav, click on this text and then go one step further with the Tab key.

Usage

The SkipNav is created by passing a JSON object that is responsible for rendering the hidden links.

[
{ _label: 'Navigation', _href: '#nav' },
{ _label: 'Inhalt', _href: '#main' },
{ _label: 'Kontakt', _href: '#kontakt' },
{ _label: 'Links', _href: '#links' },
];

Keyboard controls

buttonFunction
TabFocuses the SkipNav and allows you to scroll through the menu items.
EnterCalls the link of the focused menu item.

Properties

PropertyAttributeDescriptionTypeDefault
_label (required)_labelDefines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).stringundefined
_links (required)_linksDefines the list of links combined with their labels to render.LinkProps[] | stringundefined

Methods

kolFocus

kolFocus() => Promise<void>

Sets focus on the skip navigation's first link.

Returns

Type: Promise<void>


View example

Live editor

Examples