mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 15:13:30 +00:00
21 lines
597 B
Vue
21 lines
597 B
Vue
<script setup lang="ts">
|
|
import type { HTMLAttributes } from 'vue'
|
|
import { reactiveOmit } from '@vueuse/core'
|
|
import { Primitive, type PrimitiveProps, useForwardProps } from 'reka-ui'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
const props = defineProps<PrimitiveProps & { class?: HTMLAttributes['class'] }>()
|
|
const delegatedProps = reactiveOmit(props, 'class')
|
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
</script>
|
|
|
|
<template>
|
|
<Primitive
|
|
data-slot="pin-input-group"
|
|
v-bind="forwardedProps"
|
|
:class="cn('flex items-center', props.class)"
|
|
>
|
|
<slot />
|
|
</Primitive>
|
|
</template>
|