A continuation of HomeBox the inventory and organization system built for the Home User
<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>