Components/Toast Region

Search documentation

Jump to any guide or component.

↑↓ move · Enter open · Esc close

Feedback · ToastRegion

SSR NativeAccessible

Toast Region

Announces brief application feedback from the Cetha toast controller.

Live previewv0.1.4
Astro
---
import { ToastRegion } from '@charvesta/cetha';
---

<ToastRegion label="Notifications" />
<script>
  import { showToast } from '@charvesta/cetha/client/toast';
  showToast({ tone: 'success', title: 'Saved' });
</script>

API reference

PropTypeDefaultDescription
idstring'cetha-toasts'Region target for generated toasts.
label*stringAccessible live-region name.
classstringAdditional classes forwarded to the rendered element.

Accessibility

The polite live region announces new messages without moving keyboard focus.