Sha256: 0275ec276222ebd229d6f784028f59c5518dffe6c372fbaf86002eea19fff536

Contents?: true

Size: 925 Bytes

Versions: 12

Compression:

Stored size: 925 Bytes

Contents

<script setup lang="ts">
import { computed } from 'vue'
import { Link } from '@inertiajs/vue3'

const props = defineProps<{
  href: string
  active?: boolean
}>()

const classes = computed(() =>
  props.active
    ? 'inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 dark:border-indigo-600 text-sm font-medium leading-5 text-gray-900 dark:text-gray-100 focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out'
    : 'inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 hover:border-gray-300 dark:hover:border-gray-700 focus:outline-none focus:text-gray-700 dark:focus:text-gray-300 focus:border-gray-300 dark:focus:border-gray-700 transition duration-150 ease-in-out',
)
</script>

<template>
  <Link :href="href" :class="classes">
    <slot />
  </Link>
</template>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kaze-0.17.0 stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue
kaze-0.16.0 stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue
kaze-0.15.0 stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue
kaze-0.14.0 stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue
kaze-0.13.0 stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue
kaze-0.12.0 stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue
kaze-0.11.0 stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue
kaze-0.10.0 stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue
kaze-0.9.0 stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue
kaze-0.8.0 stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue
kaze-0.7.0 stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue
kaze-0.6.0 stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue