this repo has no description
at master 21 lines 622 B view raw
1<script setup lang="ts"> 2import type { PrimitiveProps } from "reka-ui" 3import type { HTMLAttributes } from "vue" 4import { reactiveOmit } from "@vueuse/core" 5import { Primitive, useForwardProps } from "reka-ui" 6import { cn } from "@/lib/utils" 7 8const props = defineProps<PrimitiveProps & { class?: HTMLAttributes["class"] }>() 9const delegatedProps = reactiveOmit(props, "class") 10const forwardedProps = useForwardProps(delegatedProps) 11</script> 12 13<template> 14 <Primitive 15 data-slot="pin-input-group" 16 v-bind="forwardedProps" 17 :class="cn('flex items-center', props.class)" 18 > 19 <slot /> 20 </Primitive> 21</template>