web/app/components/ui/empty/EmptyHeader.vue
Yoga Pangestu fc3f939f66 feat: add empty state UI components for enhanced user experience
- 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.
2026-07-24 09:56:08 +07:00

21 lines
369 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-header"
:class="cn(
'flex max-w-sm flex-col items-center gap-2 text-center',
props.class,
)"
>
<slot />
</div>
</template>