GhostInlineAlert reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Inline contextual feedback with optional live-region semantics. useGhostInlineAlert supplies root bindings; GhostInlineAlert renders title, message, and actions slots.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
announce | GhostInlineAlertAnnounce | "off" | No | Live-region behavior. Default `off` for static inline feedback. Use `status` or `alert` only when copy appears or changes after mount. |
as | GhostInlineAlertElement | "div" | No | Root element. Prefer `div` inside table cells. |
headingLevel | GhostInlineAlertHeadingLevel | 3 | No | Heading level wrapping the `title` slot. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
actions | Optional action controls such as GhostButton. Children stay focusable. |
message | Primary supporting copy. |
title | Optional heading. Rendered as h1–h6 from headingLevel. |
Slot props: actions
None declared.
Slot props: message
None declared.
Slot props: title
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
element | HTMLElement | null | Root element after mount; null before mount. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | root | Outer inline alert container. |
data-part | title | Heading for the title slot. |
data-part | message | Message copy wrapper. |
data-part | actions | Optional action controls. |
CSS variables
None declared.
Accessibility
Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/practices/names-and-descriptions/.
Required ARIA attributes: none.
Keyboard
| Key | Action | Automated browser test |
|---|---|---|
Tab | Moves through focusable content in the actions slot. The root is not focusable. | 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
inline-alert/basic
Title and message without live-region semantics.
inline-alert/composable
useGhostInlineAlert bindings on a section root.
inline-alert/themed
Soft danger styling from @ghostvue/themes.
inline-alert/live
announce=alert after a simulated failure.
inline-alert/table-error
Recoverable table error with a retry action.