Empty State for Angular
Introduction
Section titled “Introduction”Explains why a table, list, search, or page has nothing to show and offers the next step: a decorative icon or illustration, a title (a heading at a chosen level, or plain text inside tables and lists), a description, and up to two actions rendered as AbsoluteUI buttons or links. Three sizes; with live, a search that matches nothing is announced.
- Explain and guideA title, a description, and up to two actions that say what to do next.
- Fits anywhereThree sizes for table cells, panels, and pages; the title can be plain text inside tables.
- Heading you chooseSet the heading level to fit the page outline, or none at all.
- Announced when liveWith live, a search that matches nothing is announced politely to screen readers.
Behavior, design tokens, and limitations are described on the Empty State page; this page covers the Angular API.
Live example
Section titled “Live example”import { Component } from '@angular/core';import type { EmptyStateActionDetail } from '@absoluteui/components/empty-state';import { AuiEmptyState } from '@absoluteui/angular/empty-state';
@Component({ selector: 'app-no-results', imports: [AuiEmptyState], template: `<aui-empty-state title="No results" description="Try another search." icon="search" [live]="true" [primaryAction]="{ label: 'Clear search' }" (action)="onAction($event)"></aui-empty-state>`,})export class NoResultsComponent { cleared = false; onAction(detail: EmptyStateActionDetail): void { this.cleared = detail.action === 'primary'; }}Install and start
Section titled “Install and start”npm install @absoluteui/angular @absoluteui/components @absoluteui/core @absoluteui/themeSetup with provideAbsoluteUI() is covered in Getting started. Styles are included with the component.
import { AuiEmptyState } from '@absoluteui/angular/empty-state';Defaults for every instance: provideAbsoluteUIConfig({ components: { emptyState: { ... } } }) (see Configuration).
API reference
Section titled “API reference”<aui-empty-state>
Section titled “<aui-empty-state>”Class AuiEmptyState; template reference #ref="auiEmptyState".
Server rendering: Renders on the server; the browser re-creates it after hydration.
Inputs
Section titled “Inputs”| Input | Type | Default | Description |
|---|---|---|---|
title |
string |
Required. Short statement of the state, such as ‘No employees match your filters’. | |
description |
string |
What to do next or why the area is empty (text). | |
icon |
IconRef | null |
null |
Decorative icon above the title. |
illustration |
Node | null |
null |
Decorative illustration (image or SVG Node) instead of the icon. |
headingLevel |
EmptyStateHeadingLevel | null |
'3' |
Heading level of the title, or null for plain text (inside tables and lists). |
primaryAction |
EmptyStateAction | null |
null |
Primary button { label, icon?, href? }. |
secondaryAction |
EmptyStateAction | null |
null |
Secondary button { label, icon?, href? }. |
live |
boolean |
false |
Announce the empty state when it appears (role=status). |
size |
EmptyStateSize |
'md' |
sm inside tables and lists, md in panels, lg for whole pages. |
Outputs
Section titled “Outputs”| Output | Payload | Description |
|---|---|---|
(action) |
EmptyStateActionDetail |
The user activated an action: { action: ‘primary’ | ‘secondary’ }. Re-emits aui-action. |
Accessibility and performance
Section titled “Accessibility and performance”Pattern: Static content: a heading (or paragraph) with description and native buttons or links; optionally a polite status region so its appearance is announced.
The Angular component renders the framework-neutral component, so its keyboard support, roles, WCAG 2.2 criteria, budgets, and import cost apply unchanged: see Empty State: Accessibility and performance.
(c) 2026 Kasadara Technology Solutions Pvt Ltd. AbsoluteUI is free to use under the AbsoluteUI Free Use License; it is not open source.