Skip to content

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.

All component references

Props ​

NameTypeDefaultRequiredDescription
announceGhostInlineAlertAnnounce"off"NoLive-region behavior. Default `off` for static inline feedback. Use `status` or `alert` only when copy appears or changes after mount.
asGhostInlineAlertElement"div"NoRoot element. Prefer `div` inside table cells.
headingLevelGhostInlineAlertHeadingLevel3NoHeading level wrapping the `title` slot.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
actionsOptional action controls such as GhostButton. Children stay focusable.
messagePrimary supporting copy.
titleOptional heading. Rendered as h1–h6 from headingLevel.

Slot props: actions ​

None declared.

Slot props: message ​

None declared.

Slot props: title ​

None declared.

Exposed members ​

NameTypeDescription
elementHTMLElement | nullRoot element after mount; null before mount.

Parts and data attributes ​

AttributeValueDescription
data-partrootOuter inline alert container.
data-parttitleHeading for the title slot.
data-partmessageMessage copy wrapper.
data-partactionsOptional 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 ​

KeyActionAutomated browser test
TabMoves 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.

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

Examples ​

inline-alert/basic ​

Example source

Static inline alert Headless

Title and message without live-region semantics.

Filters are active

Showing rows that match your current search.

inline-alert/composable ​

Example source

Composable inline alert Headless

useGhostInlineAlert bindings on a section root.

Recoverable warning

Some rows were skipped during import.

inline-alert/themed ​

Example source

Themed inline alert

Soft danger styling from @ghostvue/themes.

Could not refresh rows

The server returned an error. Your last successful data is still shown below.

inline-alert/live ​

Example source

Post-mount alert Headless

announce=alert after a simulated failure.

inline-alert/table-error ​

Example source

Table load failure

Recoverable table error with a retry action.

Unable to load table

A network error prevented rows from loading. Cached data may be stale.