Skip to content

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

415 B
Raw Blame
<script lang="ts" setup>
  import { cn } from "~/lib/utils";

  const props = defineProps({
    cmp: {
      type: String,
      default: "div",
    },
    class: {
      type: String,
      default: "",
    },
  });

  const cmpClass = computed(() => cn("container mx-auto my-4 max-w-7xl px-4", props.class));
</script>

<template>
  <component :is="cmp" :class="cmpClass">
    <slot />
  </component>
</template>