Skip to content

RouterTabsNav ​

A generic router-driven tab bar built on RouterLink; the active tab is derived from the current route path. You supply the tabs (label, to, optional icon).

Code ​

vue
<script setup lang="ts">
import RouterTabsNav from '@jaltech/vuejs-ui/router-tabs-nav'
import { LayoutDashboardIcon, ListIcon, GaugeIcon } from 'lucide-vue-next'

const tabs = [
  { label: 'Tableau de bord', to: '/', icon: LayoutDashboardIcon },
  { label: 'Backlog', to: '/backlog', icon: ListIcon },
  { label: 'Vélocité', to: '/velocity', icon: GaugeIcon },
]
</script>

<template>
  <RouterTabsNav :tabs="tabs" />
</template>

Built on shadcn-vue, Reka UI and Tailwind CSS. @jaltech/vuejs-ui is a layer of complete components on top of shadcn-vue, not a replacement for it.