Skip to content

GhostToastAction reference ​

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

Native button (type=button) that runs the action.onClick given to toast(), then emits click. It does not dismiss the toast. A toast with an action persists until dismissed.

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

All component references

Props ​

None declared.

Emits ​

NamePayloadDescription
clickMouseEventAfter the action.onClick of the record ran.

Models ​

None declared.

Slots ​

NameDescription
defaultPrimary content.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidBlurs the button.
elementHTMLButtonElement | nullThe rendered element, or `null` before mount.
focus(options?: FocusOptions) => voidFocuses the button.

Parts and data attributes ​

AttributeValueDescription
data-partactionAction button.

CSS variables ​

None declared.

Accessibility ​

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

Required ARIA attributes: none.

Keyboard ​

KeyActionAutomated browser test
EnterRuns the action.Not reviewed
SpaceRuns the action.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 ​

None declared.