Files
zeroone/src/components/ui/button/Button.vue
KM 6e4dc5e9db init
Initial mock up of the app
2024-01-22 12:03:56 +01:00

23 lines
522 B
Vue

<script setup>
import { Primitive } from "radix-vue";
import { buttonVariants } from ".";
import { cn } from "@/lib/utils";
defineProps({
variant: { type: null, required: false },
size: { type: null, required: false },
as: { type: String, required: false, default: "button" },
asChild: { type: Boolean, required: false },
});
</script>
<template>
<Primitive
:as="as"
:as-child="asChild"
:class="cn(buttonVariants({ variant, size }), $attrs.class ?? '')"
>
<slot />
</Primitive>
</template>