mirror of
https://github.com/CorentinTh/it-tools.git
synced 2026-03-25 23:13:01 +00:00
15 lines
401 B
Vue
15 lines
401 B
Vue
<script setup lang="ts">
|
|
import type { HTMLAttributes } from 'vue';
|
|
import { cn } from '@/src/modules/shared/style/cn';
|
|
|
|
const props = defineProps<{
|
|
class?: HTMLAttributes['class'];
|
|
}>();
|
|
</script>
|
|
|
|
<template>
|
|
<div :class="cn('relative [&>[data-slot=input]]:has-[[data-slot=increment]]:pr-5 [&>[data-slot=input]]:has-[[data-slot=decrement]]:pl-5', props.class)">
|
|
<slot />
|
|
</div>
|
|
</template>
|