What you get#
Behaviour, keyboard support and screen reader support in five languages. You keep the markup and the styles.
Components#
Start here#
Installation
pnpm add @kvirn-ui/react @kvirn-ui/i18nFor 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.
| Package | What it is for | Install |
|---|---|---|
@kvirn-ui/react | Hooks and components. | With the others |
@kvirn-ui/i18n | Messages in five languages. | With the others |
@kvirn-ui/theme | The default look, as one CSS file. | With the others |
@kvirn-ui/core | The behaviour and keyboard logic under the components. | Comes with @kvirn-ui/react |
@kvirn-ui/map | A map and an address search. Read about Map | Separate: pnpm add @kvirn-ui/map and a map engine |
@kvirn-ui/rich-text | A text box with formatting, on Tiptap. Read about the rich text editor | Separate: 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.