Skip to main content

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

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​

Press Tab to show the skip navigation
Links (Label/Href)
<KolSkipNav _label="Skip Navigation" _links={[ { "_label": "Navigation", "_href": "#nav" }, { "_label": "Content", "_href": "#main" }, { "_label": "Contact", "_href": "#contact" } ]} />

Usage​

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

[
{ _label: 'Navigation', _href: '#nav' },
{ _label: 'Content', _href: '#main' },
{ _label: 'Contact', _href: '#contact' },
{ _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.

API​

Overview​

The SkipNav component renders a hidden navigation that allows keyboard and assistive technology users to skip repetitive navigation sections and jump directly to the main content. It only becomes visible when reached via the Tab key.

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​

focus​

focus(options?: KolFocusOptions) => Promise<void>

Sets focus on the internal element.

Parameters​
NameTypeDescription
optionsKolFocusOptions | undefined
Returns​

Type: Promise<void>


Examples​