mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-05-07 20:32:26 +00:00
26 lines
587 B
Vue
26 lines
587 B
Vue
<script setup lang="ts">
|
|
import { Link } from '@inertiajs/vue3';
|
|
import { twMerge } from 'tailwind-merge';
|
|
|
|
defineProps<{
|
|
href?: string;
|
|
}>();
|
|
</script>
|
|
|
|
<template>
|
|
<Component
|
|
:is="href ? Link : 'div'"
|
|
:href="href"
|
|
role="row"
|
|
:class="
|
|
twMerge(
|
|
'contents group [&>*]:transition [&>*]:border-row-separator [&>*]:bg-row-background [&>*]:border-b',
|
|
href ? '[&>*]:cursor-pointer [&>*]:hover:bg-white/5' : ''
|
|
)
|
|
">
|
|
<slot></slot>
|
|
</Component>
|
|
</template>
|
|
|
|
<style scoped></style>
|