Feedback

Non-ideal state

@xui/non-ideal-state

The placeholder shown when there is nothing to show: an empty list, a failed search, an error.

Install

pnpm add @xui/non-ideal-state

Add the barrel to a standalone component's imports:

import { XuiNonIdealStateImports } from '@xui/non-ideal-state';

@Component({
  imports: [XuiNonIdealStateImports],
  // …
})

Examples

Default

Loading preview…

Horizontal

Loading preview…

Text only

Loading preview…

API

XuiNonIdealState

componentxui-non-ideal-state

The placeholder shown when there is nothing to show: an empty list, a failed search, an error.

Variants

AxisOptionsDefaultorientationverticalhorizontalvertical

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the variant classes.''orientationXuiNonIdealStateVariants['orientation']Stack the icon above the text and centre everything (vertical), or set the icon beside it (horizontal).this.config.orientationtitlestring | nullWhat happened, in a few words — "No results", "Nothing here yet".nulldescriptionstring | nullWhat the user can do about it. Project buttons as content for the action itself.null

Source

libs/ui/non-ideal-state/xui

xUI 2.0.0 — Apache 2.0 licensed. Built with Angular and Tailwind CSS.