Skip to content
Tim Brayshaw edited this page Jan 15, 2016 · 2 revisions

There are currently three layout modes that you can select.

  1. Horizontal
  2. Vertical
  3. Element only

The default layout is "Horizontal".

Horizontal layout

<Input
  name="my-input"
  type="text"
  layout="horizontal"
/>

The horizontal layout aims to mirror the Bootstrap horizontal form layout.

This layout requires that the enclosing form has the form-horizontal classname applied.

The default classes are col-sm-3 for the labels, and col-sm-9 for the element. It is possible to modify these classes, see Modifying CSS class names.

Vertical layout

<Input
  name="my-input"
  type="text"
  layout="vertical"
/>

This is similar to the horizontal layout, except we don’t add any grid classes to the component. This layout is the same as the Bootstrap basic form example.

“Element only” layout

<Input
  name="my-input"
  type="text"
  layout="elementOnly"
/>

Only renders the form control.

Clone this wiki locally