Initial commit of the L'Ami Fiduciaire SaaS platform built on Laravel 12, Vue 3, Inertia.js 2, and Tailwind CSS 4. Story 0.1 (rename folders to declarations in database) is implemented and code-reviewed: migration, rollback, and 6 Pest tests all passing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36 lines
1.1 KiB
Vue
36 lines
1.1 KiB
Vue
<script setup lang="ts">
|
|
import type { NavigationMenuRootEmits, NavigationMenuRootProps } from "reka-ui"
|
|
import type { HTMLAttributes } from "vue"
|
|
import { reactiveOmit } from "@vueuse/core"
|
|
import {
|
|
NavigationMenuRoot,
|
|
useForwardPropsEmits,
|
|
} from "reka-ui"
|
|
import { cn } from "@/lib/utils"
|
|
import NavigationMenuViewport from "./NavigationMenuViewport.vue"
|
|
|
|
const props = withDefaults(defineProps<NavigationMenuRootProps & {
|
|
class?: HTMLAttributes["class"]
|
|
viewport?: boolean
|
|
}>(), {
|
|
viewport: true,
|
|
})
|
|
const emits = defineEmits<NavigationMenuRootEmits>()
|
|
|
|
const delegatedProps = reactiveOmit(props, "class", "viewport")
|
|
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
</script>
|
|
|
|
<template>
|
|
<NavigationMenuRoot
|
|
v-slot="slotProps"
|
|
data-slot="navigation-menu"
|
|
:data-viewport="viewport"
|
|
v-bind="forwarded"
|
|
:class="cn('group/navigation-menu relative flex max-w-max flex-1 items-center justify-center', props.class)"
|
|
>
|
|
<slot v-bind="slotProps" />
|
|
<NavigationMenuViewport v-if="viewport" />
|
|
</NavigationMenuRoot>
|
|
</template>
|