Files
BRETT/app/components/ui/field/FieldSet.vue
T
2026-10-03 20:07:49 +02:00

18 lines
400 B
Vue

<script setup lang="ts">
import type { HTMLAttributes } from 'vue'
import { cn } from '@/lib/utils'
const props = defineProps<{
class?: HTMLAttributes['class']
}>()
</script>
<template>
<fieldset
data-slot="field-set"
:class="cn('gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col', props.class)"
>
<slot />
</fieldset>
</template>