Skip to content

GhostToast reference ​

Package: @ghostvue/vue. Status: experimental (stability policy).

Plain container (div, no live-region role) for one visible toast. Pauses its auto-dismiss timer while hovered or while focus is inside. Escape with focus inside dismisses only this toast, stops propagation so a dialog behind stays open, and returns focus to the element focused before focus entered the region.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
toastGhostToastRecord—YesRecord to render, usually one item of the viewport's `toasts`.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultPrimary content.

Slot props: default ​

NameTypeDescription
dismiss() => voidDismisses this toast.
toastGhostToastRecordThe rendered record.

Exposed members ​

NameTypeDescription
elementHTMLElement | nullToast root after mount.

Parts and data attributes ​

AttributeValueDescription
data-partrootToast root, also marked data-ghost-toast.

CSS variables ​

None declared.

Accessibility ​

Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/alert/.

Required ARIA attributes: none.

Keyboard ​

KeyActionAutomated browser test
EscapeDismisses only the focused toast and returns focus to where it was before it entered the region.Not reviewed

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 ​

toast/basic ​

Example source

Basic Headless

Provider, viewport, and an informational toast that auto-dismisses after eight seconds.

toast/persist-error ​

Example source

Persistent error Headless

An urgent error toast with a retry action that stays until dismissed.

toast/queue-overflow ​

Example source

Queue overflow Headless

Five toasts with a limit of three: two wait and appear as visible toasts are dismissed.