Fix colors, replace Dropdown with Select, add clear layout
This commit is contained in:
29
app/components/ui/frame/Frame.vue
Normal file
29
app/components/ui/frame/Frame.vue
Normal file
@ -0,0 +1,29 @@
|
||||
<script setup lang="ts">
|
||||
import type { PrimitiveProps } from "reka-ui"
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import type { FrameVariants } from "."
|
||||
import { cn } from "@/lib/utils"
|
||||
import { frameVariants } from "."
|
||||
|
||||
|
||||
interface Props extends PrimitiveProps {
|
||||
border?: FrameVariants["border"]
|
||||
borderRadius?: FrameVariants["borderRadius"]
|
||||
borderPlacement?: FrameVariants["borderPlacement"]
|
||||
background?: FrameVariants["background"]
|
||||
padding?: FrameVariants["padding"]
|
||||
margin?: FrameVariants["margin"]
|
||||
class?: HTMLAttributes["class"]
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
as: "frame",
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div :as="as" :as-child="asChild"
|
||||
:class="cn(frameVariants({ border, borderRadius, borderPlacement, background, padding, margin }), props.class)">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user