We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FaDivider
1 parent 33db104 commit b533c5aCopy full SHA for b533c5a
src/ui/components/FaDivider/index.vue
@@ -1,12 +1,14 @@
1
<script setup lang="ts">
2
+import type { HTMLAttributes } from 'vue'
3
import { cn } from '@/utils'
4
5
defineOptions({
6
name: 'FaDivider',
7
})
8
-defineProps<{
9
+const props = defineProps<{
10
position?: 'start' | 'end'
11
+ class?: HTMLAttributes['class']
12
}>()
13
14
const slots = defineSlots<{
@@ -20,7 +22,7 @@ const slots = defineSlots<{
20
22
'before:(flex-basis-0)': position === 'start',
21
23
'after:(flex-basis-0)': position === 'end',
24
'gap-4': !!slots.default,
- })"
25
+ }, props.class)"
26
>
27
<slot />
28
</div>
0 commit comments