Basic Toast
A transient, auto-dismissing confirmation announced politely.
6 फ्रेमवर्कमध्यम
A zero-state for an empty inbox with an inline illustration.
<!--
The empty inbox. The illustration is an inline SVG - no network image to fail -
and it's aria-hidden because the heading already says everything; a screen reader
reading "bell" here would only add noise. Centred, fluid, and comfortable from
320px up. The optional action is a real <button>.
-->
<div class="flex w-full max-w-sm flex-col items-center justify-center gap-3 px-6 py-10 text-center">
<span class="flex h-14 w-14 items-center justify-center rounded-full bg-gray-100 text-gray-400 dark:bg-gray-800 dark:text-gray-500" aria-hidden="true">
<svg class="h-7 w-7" viewBox="0 0 20 20" fill="currentColor"><path d="M10 2a5 5 0 0 0-5 5v3.6l-1.3 2.6A1 1 0 0 0 4.6 15h10.8a1 1 0 0 0 .9-1.8L15 10.6V7a5 5 0 0 0-5-5Zm0 16a2.5 2.5 0 0 0 2.5-2.5h-5A2.5 2.5 0 0 0 10 18Z" /></svg>
</span>
<div>
<p class="text-sm font-semibold text-gray-900 dark:text-gray-100">You're all caught up</p>
<p class="mt-1 text-sm text-gray-600 dark:text-gray-400">New notifications will show up here.</p>
</div>
<button type="button" class="mt-1 inline-flex items-center justify-center rounded-lg border border-gray-300 bg-white px-4 py-2 text-sm font-semibold text-gray-700 transition hover:bg-gray-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2 motion-reduce:transition-none dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:focus-visible:ring-blue-400 dark:focus-visible:ring-offset-gray-900">Notification settings</button>
</div>| Prop | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
title | string | 'You're all caught up' | कार्ड की हेडिंग टेक्स्ट। |
description | string | - | Description |
actionLabel | string | - | Action label |
onAction | () => void | - | On action |
className | string | - | रूट एलिमेंट पर मर्ज होने वाली अतिरिक्त क्लासेज़। |
The illustration is an inline SVG with no network image to fail, and it is aria-hidden because the heading already says everything. Give the empty state a job - a link to notification settings or a way to catch up - so it is a next step, not a dead end.