mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
24 lines
502 B
Vue
24 lines
502 B
Vue
|
|
<script setup lang="ts">
|
||
|
|
import { cn } from "@/lib/utils";
|
||
|
|
import type { WithClassAsProps } from "./interface";
|
||
|
|
import { useCarousel } from "./useCarousel";
|
||
|
|
|
||
|
|
const props = defineProps<WithClassAsProps>();
|
||
|
|
|
||
|
|
const { orientation } = useCarousel();
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<div
|
||
|
|
role="group"
|
||
|
|
aria-roledescription="slide"
|
||
|
|
:class="cn(
|
||
|
|
'min-w-0 shrink-0 grow-0 basis-full',
|
||
|
|
orientation === 'horizontal' ? 'pl-4' : 'pt-4',
|
||
|
|
props.class,
|
||
|
|
)"
|
||
|
|
>
|
||
|
|
<slot />
|
||
|
|
</div>
|
||
|
|
</template>
|