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>
30 lines
679 B
Vue
30 lines
679 B
Vue
<script setup lang="ts">
|
|
import type { PrimitiveProps } from "reka-ui"
|
|
import type { HTMLAttributes } from "vue"
|
|
import type { ButtonVariants } from "."
|
|
import { Primitive } from "reka-ui"
|
|
import { cn } from "@/lib/utils"
|
|
import { buttonVariants } from "."
|
|
|
|
interface Props extends PrimitiveProps {
|
|
variant?: ButtonVariants["variant"]
|
|
size?: ButtonVariants["size"]
|
|
class?: HTMLAttributes["class"]
|
|
}
|
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
as: "button",
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<Primitive
|
|
data-slot="button"
|
|
:as="as"
|
|
:as-child="asChild"
|
|
:class="cn(buttonVariants({ variant, size }), props.class)"
|
|
>
|
|
<slot />
|
|
</Primitive>
|
|
</template>
|