Data display

Descriptions

@xui/descriptions

A key/value description list on a responsive grid — set column, switch orientation between inline and stacked, and toggle the bordered table variant.

Install

pnpm add @xui/descriptions

Add the barrel to a standalone component's imports:

import { XuiDescriptionsImports } from '@xui/descriptions';

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

Examples

Basic

Loading preview…

Bordered

Loading preview…

Vertical

Loading preview…

API

XuiDescriptionsItem

componentxui-descriptions-item

One label/value entry inside {@link XuiDescriptions}. Its projected content is the value; label is the key and span widens it across grid columns.

Inputs

NameTypeDefaultlabelstringThe term this item describes. Project the value as content.''spannumberHow many grid columns this item occupies.1

XuiDescriptions

componentxui-descriptions

A key/value description list laid out on a grid. Wrap <xui-descriptions-item label="…">value</xui-descriptions-item> entries; column sets how many per row, orientation stacks or inlines the label, and bordered draws a boxed, table-like variant.

Inputs

NameTypeDefaultclassClassValueExtra classes, merged into the component's own rather than replacing them.''titlestringA heading above the list. Omitted entirely when empty.''columnnumberNumber of items per row.3orientation'horizontal' | 'vertical'Put each label beside its value (horizontal) or above it (vertical). Horizontal labels get a trailing colon unless the list is bordered.'horizontal'borderedbooleanDraw the list as a bordered grid with a filled header, rather than as open rows.false

Source

libs/ui/descriptions/xui

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