2019-03-18 08:53:00 -03:00
|
|
|
<template>
|
2021-02-27 10:36:45 -03:00
|
|
|
<div v-if="links.length > 3">
|
|
|
|
<div class="flex flex-wrap -mb-1">
|
|
|
|
<template v-for="(link, key) in links">
|
2021-02-27 13:34:08 -03:00
|
|
|
<div v-if="link.url === null" :key="key" class="mr-1 mb-1 px-4 py-3 text-sm leading-4 text-gray-400 border rounded" v-html="link.label" />
|
2021-12-08 12:15:39 -03:00
|
|
|
<Link v-else :key="`link-${key}`" class="mr-1 mb-1 px-4 py-3 text-sm leading-4 border rounded hover:bg-white focus:border-indigo-500 focus:text-indigo-500" :class="{ 'bg-white': link.active }" :href="link.url" v-html="link.label" />
|
2021-02-27 10:36:45 -03:00
|
|
|
</template>
|
|
|
|
</div>
|
2019-03-18 08:53:00 -03:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-12-08 12:15:39 -03:00
|
|
|
import { Link } from '@inertiajs/inertia-vue3'
|
|
|
|
|
2019-03-18 08:53:00 -03:00
|
|
|
export default {
|
2021-12-08 12:15:39 -03:00
|
|
|
components: {
|
|
|
|
Link,
|
|
|
|
},
|
2019-03-18 08:53:00 -03:00
|
|
|
props: {
|
|
|
|
links: Array,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|