The primary navigation of a wide site.
Import it from rei-kit/web:
import { NavLinks } from 'rei-kit/web'
Open NavLinks in the live documentation, where every prop below is a control you can change, in four materials and ten palettes.
<script setup lang="ts">
import { ref } from 'vue'
import { NavLinks } from 'rei-kit/web'
const active = ref('docs')
const links = [
{ key: 'docs', to: '/docs', label: 'Docs' },
{ key: 'blog', to: '/blog', label: 'Blog' },
]
</script>
<template>
<NavLinks :items="links" :active="active" label="Main" />
</template>
| Prop | Type | Required or default | What it is for |
|---|---|---|---|
items | readonly NavLinkItem<K>[] | yes | |
active | K | Which item is current. Usually derived from the route. | |
label | string | '' | Accessible name for the navigation landmark. |
rei-kit is an accessible Vue 3 and Tailwind CSS 4 component library: 106 components, themed by role rather than by colour on three independent axes — ten WCAG-checked palettes, four materials and light or dark, each switched with one attribute. Typed, tested, SSR-safe, no runtime dependencies, MIT.