generated:catalog.entry.empty-state.title
generated:catalog.entry.empty-state.description
@xngui/components/empty-state@xngui/components/empty-statechrome:demo.section
chrome:demo.preview
No data
Create your first project to get started.
import { Component } from '@angular/core';
import { XButton } from '@xngui/components/button';
import { XEmptyState } from '@xngui/components/empty-state';
import { XIcon } from '@xngui/icons';
@Component({
selector: 'app-example',
imports: [XButton, XEmptyState, XIcon],
templateUrl: './empty-state.component.html',
})
export class ExampleComponent {}
chrome:demo.events.title
chrome:demo.events.empty
chrome:demo.api.title
x-empty-state
chrome:demo.api.col.property
chrome:demo.api.col.type
chrome:demo.api.col.default
chrome:demo.api.col.description
typeXEmptyStateType'no-data'Preset illustration and copy variant.
sizeXSize—Visual size tier — falls back to XConfigService when unset.
densityXDensity—Spacing offsets — orthogonal to `size`; falls back to XConfigService when unset.
titlestring—Overrides the preset title for any `type`.
descriptionstring—Supporting description below the title.
noDataTitlestring—Default title when `type` is `no-data` and `title` is unset — falls back to the `emptyState.noData` i18n key.
noResultsTitlestring—Default title when `type` is `no-results` and `title` is unset — falls back to the `emptyState.noResults` i18n key.
errorTitlestring—Default title when `type` is `error` and `title` is unset — falls back to the `emptyState.error` i18n key.