Skip to content

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.

All component references

Props ​

NameTypeDefaultRequiredDescription
durationnumber8000NoDefault auto-dismiss interval in ms for informational toasts. `0` persists.
labelstring"Notifications"NoAccessible name of the viewport region.
limitnumber3NoMaximum number of visible toasts; later toasts wait in FIFO order.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultPrimary 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.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

None declared.