← catalogo / navigation/vertical-navigation
TW-NA-VN-01
Tailwind Plus
tailwind/application-ui/navigation/vertical-navigation/01-simple
html: questa e' vue, sotto c'e' il sorgente.
<template>
<nav class="flex flex-1 flex-col" aria-label="Sidebar">
<ul role="list" class="-mx-2 space-y-1">
<li v-for="item in navigation" :key="item.name">
<a :href="item.href" :class="[item.current ? 'bg-gray-50 text-indigo-600 dark:bg-white/5 dark:text-white' : 'text-gray-700 hover:bg-gray-50 hover:text-indigo-600 dark:text-gray-300 dark:hover:bg-white/5 dark:hover:text-white', 'group flex gap-x-3 rounded-md p-2 pl-3 text-sm/6 font-semibold']">{{ item.name }}</a>
</li>
</ul>
</nav>
</template>
<script setup>
const navigation = [
{ name: 'Dashboard', href: '#', current: true },
{ name: 'Team', href: '#', current: false },
{ name: 'Projects', href: '#', current: false },
{ name: 'Calendar', href: '#', current: false },
{ name: 'Documents', href: '#', current: false },
{ name: 'Reports', href: '#', current: false },
]
</script>