CxJS

LabelsLeftLayout

import { LabelsLeftLayout } from 'cx/ui'; Copied

LabelsLeftLayout is used for horizontal form layouts. It renders children inside a table where labels go into the first column and inputs go into the second column.

<LabelsLeftLayout>
  <TextField value={m.name} label="Name" />
  <TextField value={m.email} label="Email" />
  <NumberField value={m.age} label="Age" />
  <TextArea value={m.bio} label="Bio" rows={3} />
</LabelsLeftLayout>

Use LabeledContainer when multiple widgets need to share a single label.

Configuration

PropertyTypeDescription
labelStyleStylePropStyle applied to label cells.
labelClassClassPropCSS class applied to label cells.