Forms

Control group

@xui/control-group

Groups adjacent inputs and buttons into one seamless unit — the rounding and doubled borders between neighbours collapse, and the shared 1px border is overlapped so it never reads as double-width.

Install

pnpm add @xui/control-group

Add the barrel to a standalone component's imports:

import { XuiControlGroupImports } from '@xui/control-group';

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

Examples

Default

Loading preview…

Fill

Loading preview…

Vertical

Loading preview…

API

XuiControlGroup

directive[xuiControlGroup]

Groups adjacent inputs and buttons into one seamless unit.

Variants

AxisOptionsDefaultorientationhorizontalverticalhorizontalfilltruefalsefalse

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the variant classes.''orientation'horizontal' | 'vertical'Stack the controls in a row or a column.this.config.orientationfillbooleanStretch the controls to share the group's width (or height) equally.this.config.fill

Source

libs/ui/control-group/xui

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