- Introduced multiple components: Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, and EmptyTitle. - Each component is designed to provide a consistent empty state layout with customizable class props. - Utilized utility functions for class management to ensure styling flexibility.
18 lines
330 B
Vue
18 lines
330 B
Vue
<script setup lang="ts">
|
|
import type { HTMLAttributes } from "vue"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
const props = defineProps<{
|
|
class?: HTMLAttributes["class"]
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
data-slot="empty-title"
|
|
:class="cn('text-lg font-medium tracking-tight', props.class)"
|
|
>
|
|
<slot />
|
|
</div>
|
|
</template>
|