GhostToastProvider reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Renderless owner of one provider-scoped toast store (no module-global queue). Descendants publish with useGhostToast(); a descendant GhostToastViewport renders the stack. At most `limit` toasts are visible and later ones wait in FIFO order. Informational toasts auto-dismiss after `duration` ms (8000 by default); error and action toasts persist. During SSR toast() is a no-op with a development warning; on the client, toasts created before the viewport mounts wait and are shown when it mounts. Unmounting the provider dismisses every toast and calls each onDismiss once.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
duration | number | 8000 | No | Default auto-dismiss interval in ms for informational toasts. `0` persists. |
label | string | "Notifications" | No | Accessible name of the viewport region. |
limit | number | 3 | No | Maximum number of visible toasts; later toasts wait in FIFO order. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Primary content. |
Slot props: default
None declared.
Exposed members
None declared.
Parts and data attributes
None declared.
CSS variables
None declared.
Accessibility
Role: none. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/alert/.
Required ARIA attributes: none.
Keyboard
None declared.
Verification
Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.
| Category | Status | Evidence |
|---|---|---|
| Automated keyboard | Not reviewed | No declared key is mapped to a browser test yet. |
| Manual interaction | Not reviewed | No review recorded. |
| Assistive technology | Not reviewed | No review recorded. |
Examples
None declared.