GhostToastClose reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Native button (type=button) that dismisses its toast, then emits click. Give it visible text or aria-label. When it held focus, focus returns to the element focused before focus entered the region.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
None declared.
Emits
| Name | Payload | Description |
|---|---|---|
click | MouseEvent | After the toast was dismissed. |
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Primary content. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
blur | () => void | Blurs the button. |
element | HTMLButtonElement | null | The rendered element, or `null` before mount. |
focus | (options?: FocusOptions) => void | Focuses the button. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | close | Dismiss button. |
CSS variables
None declared.
Accessibility
Role: button. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/button/.
Required ARIA attributes: none.
Keyboard
| Key | Action | Automated browser test |
|---|---|---|
Enter | Dismisses the toast. | Not reviewed |
Space | Dismisses the toast. | Not reviewed |
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.