Line data Source code
1 16 : <script setup lang="ts">
2 : import type { NumberFieldIncrementProps } from 'reka-ui'
3 : import { NumberFieldIncrement, useForwardProps } from 'reka-ui'
4 : import type { HTMLAttributes } from 'vue'
5 :
6 : import { cn } from '@comfyorg/tailwind-utils'
7 :
8 2356 : const { class: className, ...restProps } = defineProps<
9 : NumberFieldIncrementProps & {
10 : class?: HTMLAttributes['class']
11 : }
12 : >()
13 580 : const forwarded = useForwardProps(restProps)
14 580 : </script>
15 :
16 : <template>
17 585 : <NumberFieldIncrement
18 : v-bind="forwarded"
19 : data-slot="number-field-increment"
20 : :class="
21 : cn(
22 : 'flex h-full w-6 shrink-0 cursor-pointer items-center justify-center rounded-r-lg border-none bg-transparent text-muted-foreground hover:bg-accent focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-inset disabled:pointer-events-none disabled:opacity-30',
23 : className
24 : )
25 : "
26 : >
27 : <slot>
28 : <i class="icon-[lucide--plus]" />
29 : </slot>
30 : </NumberFieldIncrement>
31 : </template>
|