Layout

Divider

@xui/divider

A rule separating two groups of content.

Install

pnpm add @xui/divider

Add the barrel to a standalone component's imports:

import { XuiDividerImports } from '@xui/divider';

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

Examples

Default

Loading preview…

Vertical

Loading preview…

Compact

Loading preview…

API

XuiDivider

directive[xuiDivider]

A rule separating two groups of content.

Variants

AxisOptionsDefaultorientationhorizontalverticalhorizontalcompacttruefalsefalse

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the variant classes.''orientationNonNullable<XuiDividerVariants['orientation']>Which way the rule runs. A vertical divider needs a height from its container — it has none of its own.'horizontal'compactbooleanDrop the surrounding margin so the divider sits flush with its neighbours.false

Source

libs/ui/divider/xui

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