Skip to
Keyboard shortcuts

Use the up and down arrow keys to move between items. Press Alt+Shift+K to open this list again.

Alpha version out now. The API may still change.

Get started

Accessible React components for public services in the Nordics and the EU. You write the markup and styles. KvirnUI gives you the behaviour, keyboard support and screen reader support, designed and tested to meet WCAG 2.2 AA.

What you get#

Behaviour, keyboard support and screen reader support in five languages. You keep the markup and the styles.

Components#

Read about Button

Start here#

Installation

pnpm add @kvirn-ui/react @kvirn-ui/i18n

For the default look, also add @kvirn-ui/theme and import theme.css once, for example in your root layout. Every component is then styled. Remove the import, and it’s unstyled again: KvirnUI never loads CSS for you. Theming shows how to change it.

pnpm add @kvirn-ui/theme

import '@kvirn-ui/theme/theme.css'

Each component page shows the import it needs.

Packages#

Most of KvirnUI is two packages you install above. Some parts ship on their own, so you add them only when you need them.

PackageWhat it is forInstall
@kvirn-ui/reactHooks and components.With the others
@kvirn-ui/i18nMessages in five languages.With the others
@kvirn-ui/themeThe default look, as one CSS file.With the others
@kvirn-ui/coreThe behaviour and keyboard logic under the components.Comes with @kvirn-ui/react
@kvirn-ui/mapA map and an address search. Read about MapSeparate: pnpm add @kvirn-ui/map and a map engine
@kvirn-ui/rich-textA text box with formatting, on Tiptap. Read about the rich text editorSeparate: pnpm add @kvirn-ui/rich-text and the Tiptap packages the page lists

What “designed and tested to meet WCAG 2.2 AA” means#

Every component is tested automatically and reviewed for accessibility. Whether your service meets WCAG 2.2 AA depends on how you build and test the whole service.