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>
37 lines
951 B
Vue
37 lines
951 B
Vue
<script setup lang="ts">
|
|
import type { PrimitiveProps } from "reka-ui"
|
|
import type { HTMLAttributes } from "vue"
|
|
import type { SidebarMenuButtonVariants } from "."
|
|
import { Primitive } from "reka-ui"
|
|
import { cn } from "@/lib/utils"
|
|
import { sidebarMenuButtonVariants } from "."
|
|
|
|
export interface SidebarMenuButtonProps extends PrimitiveProps {
|
|
variant?: SidebarMenuButtonVariants["variant"]
|
|
size?: SidebarMenuButtonVariants["size"]
|
|
isActive?: boolean
|
|
class?: HTMLAttributes["class"]
|
|
}
|
|
|
|
const props = withDefaults(defineProps<SidebarMenuButtonProps>(), {
|
|
as: "button",
|
|
variant: "default",
|
|
size: "default",
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<Primitive
|
|
data-slot="sidebar-menu-button"
|
|
data-sidebar="menu-button"
|
|
:data-size="size"
|
|
:data-active="isActive"
|
|
:class="cn(sidebarMenuButtonVariants({ variant, size }), props.class)"
|
|
:as="as"
|
|
:as-child="asChild"
|
|
v-bind="$attrs"
|
|
>
|
|
<slot />
|
|
</Primitive>
|
|
</template>
|