web/app/components/ui/empty/EmptyDescription.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
413 B
Vue

<script setup lang="ts">
import type { HTMLAttributes } from "vue"
import { cn } from "@/lib/utils"
defineProps<{
class?: HTMLAttributes["class"]
}>()
</script>
<template>
<p
data-slot="empty-description"
:class="cn(
'text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4',
$attrs.class ?? '',
)"
>
<slot />
</p>
</template>