25 lines
673 B
Vue
25 lines
673 B
Vue
<script setup lang="ts">
|
|
import type { PrimitiveProps } from "reka-ui"
|
|
import type { HTMLAttributes } from "vue"
|
|
import type { ContainerVariants } from "../container"
|
|
import { cn } from "@/lib/utils"
|
|
import Container from "@/components/ui/container/Container.vue"
|
|
|
|
|
|
interface Props extends PrimitiveProps {
|
|
side?: ContainerVariants["borderPlacement"]
|
|
class?: HTMLAttributes["class"]
|
|
}
|
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
as: "container",
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<Container :as="as" :as-child="asChild" :class="cn(props.class)" margin="none" borderRadius="none"
|
|
:borderPlacement="side">
|
|
<slot />
|
|
</Container>
|
|
</template>
|