Modrinth/apps/frontend/src/components/ui/ConditionalNuxtLink.vue
Evan Song abec2e48d4
Add TailwindCSS (#1252)
* Setup TailwindCSS

* Fully setup configuration

* Refactor some tailwind variables
2024-07-06 20:57:32 -07:00

22 lines
278 B
Vue

<template>
<nuxt-link v-if="isLink" :to="to">
<slot />
</nuxt-link>
<span v-else>
<slot />
</span>
</template>
<script setup>
defineProps({
to: {
type: String,
required: true,
},
isLink: {
type: Boolean,
required: true,
},
});
</script>