23 lines
545 B
Vue
23 lines
545 B
Vue
<script setup lang="ts">
|
|
import type { HTMLAttributes } from "vue"
|
|
import type { ButtonGroupVariants } from "."
|
|
import { cn } from "@/lib/utils"
|
|
import { buttonGroupVariants } from "."
|
|
|
|
const props = defineProps<{
|
|
class?: HTMLAttributes["class"]
|
|
orientation?: ButtonGroupVariants["orientation"]
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
role="group"
|
|
data-slot="button-group"
|
|
:data-orientation="props.orientation"
|
|
:class="cn(buttonGroupVariants({ orientation: props.orientation }), props.class)"
|
|
>
|
|
<slot />
|
|
</div>
|
|
</template>
|