Initial website implementation with Hero section
This commit is contained in:
24
app/components/ui/outline/Outline.vue
Normal file
24
app/components/ui/outline/Outline.vue
Normal file
@ -0,0 +1,24 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user