Skip to content

Inline Message for Angular

AngularFeedback

Compact one-line status shown next to the content it describes (for example ‘Saved 2 minutes ago’ or ‘Offline’), with a tone icon and a visually hidden localized tone prefix. Static by default; opt-in live role for status that changes.

  • Next to the contentA short status line placed beside the field or section it is about.
  • Four tonesInfo, success, warning, and error with matching icons and colors.
  • Live region optionAnnounce changes politely or assertively, or stay silent for static text.

Behavior, design tokens, and limitations are described on the Inline Message page; this page covers the Angular API.

import { Component } from '@angular/core';
import { AuiInlineMessage } from '@absoluteui/angular/inline-message';
@Component({
selector: 'app-save-state',
imports: [AuiInlineMessage],
template: `<aui-inline-message live="polite" [tone]="saved ? 'success' : 'info'" [message]="saved ? 'Saved' : 'Saving'"></aui-inline-message>`,
})
export class SaveStateComponent {
saved = false;
}
Terminal window
npm install @absoluteui/angular @absoluteui/components @absoluteui/core @absoluteui/theme

Setup with provideAbsoluteUI() is covered in Getting started. Styles are included with the component.

import { AuiInlineMessage } from '@absoluteui/angular/inline-message';

Defaults for every instance: provideAbsoluteUIConfig({ components: { inlineMessage: { ... } } }) (see Configuration).

Class AuiInlineMessage; template reference #ref="auiInlineMessage".

Server rendering: Renders on the server; the browser re-creates it after hydration.

Input Type Default Description
message string Required. Message text.
tone InlineMessageTone 'info' Tone: icon, colors, and hidden tone prefix.
live InlineMessageLive 'off' off: static; polite: role=status; assertive: role=alert.
icons Partial<InlineMessageIcons> Icon slot overrides.
locale string 'en-US' Locale of the tone prefix.

Pattern: Status message (WCAG 4.1.3): role=status for polite updates, role=alert for urgent ones, plain text when static.

The Angular component renders the framework-neutral component, so its keyboard support, roles, WCAG 2.2 criteria, budgets, and import cost apply unchanged: see Inline Message: Accessibility and performance.