TabBar

The floating bottom bar.

Import it from rei-kit: import { TabBar } from 'rei-kit'

Open TabBar in the live documentation, where every prop below is a control you can change, in four materials and ten palettes.

Usage

<script setup lang="ts">
import { ref } from 'vue'
import { House, Settings } from 'lucide-vue-next'
import { TabBar } from 'rei-kit'

const active = ref('home')
const tabs = [
  { key: 'home', to: '/', label: 'Home', icon: House },
  { key: 'settings', to: '/settings', label: 'Settings', icon: Settings },
]
</script>

<template>
  <TabBar :items="tabs" :active="active" label="Main" />
</template>

Props

Props
PropTypeRequired or defaultWhat it is for
itemsreadonly TabItem<K>[]yes
activeKWhich item is current. Usually from `route.meta`.
labelstring''Accessible name for the navigation landmark.

About rei-kit

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.

pnpm add rei-kit · npm · GitHub