Layout

Section

@xui/section

A titled container for a group of related content.

Install

pnpm add @xui/section

Add the barrel to a standalone component's imports:

import { XuiSectionImports } from '@xui/section';

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

Examples

Default

Loading preview…

Collapsible

Loading preview…

Compact

Loading preview…

Without header

Loading preview…

API

XuiSection

componentxui-section

A titled container for a group of related content.

Variants

AxisOptionsDefaultelevation010

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the variant classes.''elevationXuiSectionVariants['elevation']Drop-shadow depth of the section's card.this.config.elevationtitlestring | nullThe header only renders when there is a title.nullsubtitlestring | nullSecondary text beside the title in the header.nullcollapsiblebooleanLet the header fold the section's body away.falsecompactbooleanReduce the header padding.this.config.compactopentwo-waybooleanOpen state of a collapsible section. Works bound or unbound.true

XuiSectionCard

componentxui-section-card

A padded content panel inside a section.

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the base classes.''paddedbooleanTurn off the internal padding for content that supplies its own.true

Source

libs/ui/section/xui

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