-
Notifications
You must be signed in to change notification settings - Fork 92
Layouts
Tim Brayshaw edited this page Jan 15, 2016
·
2 revisions
There are currently three layout modes that you can select.
The default layout is "Horizontal".
<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.
<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.
<Input
name="my-input"
type="text"
layout="elementOnly"
/>
Only renders the form control.