feat: Add file uploads to composer

This commit is contained in:
Jesse Wierzbinski 2024-12-01 17:20:21 +01:00
parent 294740c97f
commit 027847aa03
No known key found for this signature in database
27 changed files with 718 additions and 31 deletions

View file

@ -0,0 +1,27 @@
<script setup lang="ts">
import { cn } from "@/lib/utils";
import { Label, type LabelProps } from "radix-vue";
import { type HTMLAttributes, computed } from "vue";
const props = defineProps<LabelProps & { class?: HTMLAttributes["class"] }>();
const delegatedProps = computed(() => {
const { class: _, ...delegated } = props;
return delegated;
});
</script>
<template>
<Label
v-bind="delegatedProps"
:class="
cn(
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
props.class,
)
"
>
<slot />
</Label>
</template>

View file

@ -0,0 +1 @@
export { default as Label } from "./Label.vue";