<script setup lang="ts">
import type { PrimitiveProps } from "reka-ui"
import type { HTMLAttributes } from "vue"
import type { FrameVariants } from "../frame"
import { cn } from "@/lib/utils"
import Frame from "../frame/Frame.vue"


interface Props extends PrimitiveProps {
    side?: FrameVariants["borderPlacement"]
    class?: HTMLAttributes["class"]
}

const props = withDefaults(defineProps<Props>(), {
    as: "container",
})
</script>

<template>
    <Frame :as="as" :as-child="asChild" :class="cn(props.class)" margin="none" borderRadius="none"
        :borderPlacement="side">
        <slot />
    </Frame>
</template>
