Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

578 B
Raw Blame
<script setup lang="ts">
  import { DialogDescription, type DialogDescriptionProps } from "reka-ui";
  import { computed, type HTMLAttributes } from "vue";
  import { cn } from "@/lib/utils";

  const props = defineProps<DialogDescriptionProps & { class?: HTMLAttributes["class"] }>();

  const delegatedProps = computed(() => {
    const { class: _, ...delegated } = props;

    return delegated;
  });
</script>

<template>
  <DialogDescription :class="cn('text-sm text-muted-foreground', props.class)" v-bind="delegatedProps">
    <slot />
  </DialogDescription>
</template>