
Use the examples below to build your forms.
All form elements like, inputs, selects, textareas should have the .form-control CSS class. Each form row should have the .form-group CSS class.
To create an inline form add the .form-inline CSS class to the <form> element.
To create a horizontal form add the .form-horizontal CSS class to the <form> element.
Use the markups below to create form layouts with checkboxes.
Use the markup below to vertically align checkbox inputs.
Use the .checkbox-inline classes on a series of checkboxes or checkboxes for controls that appear on the same line.
Add the .custom-checkbox CSS class to the checkbox input that you would like to have custom styling.
You can use the color helper CSS classes to add different backgrounds to the custom checkbox inputs.
The .checkbox-primary color can be inherited from a theme color scheme you select. These colors are usually used through out the app to style different kinds of widgets, components and elements.
| Result | Helper class | Description | 
|---|---|---|
|  | .checkbox-primary | This is the primary background color. | 
The color helper classes below come packed with the framework.
| Result | Helper class | Description | 
|---|---|---|
|  | .checkbox-success | Used for success actions. | 
|  | .checkbox-danger | Used for error actions. | 
|  | .checkbox-warning | Used for warning actions. | 
|  | .checkbox-info | Used for information actions. | 
Use the markups below to create form layouts with radios.
Use the markup below to vertically align radio inputs.
Use the .radio-inline classes on a series of radios or radios for controls that appear on the same line.
Add the .custom-input CSS class to the radio input that you would like to have custom styling.
You can use the color helper CSS classes to add different backgrounds to the custom radio inputs.
The .radio-primary color can be inherited from a theme color scheme you select. These colors are usually used through out the app to style different kinds of widgets, components and elements.
| Result | Helper class | Description | 
|---|---|---|
|  | .radio-primary | This is the primary background color. | 
The color helper classes below come packed with the Bratilius Framework.
| Result | Helper class | Description | 
|---|---|---|
|  | .radio-success | Used for success actions. | 
|  | .radio-danger | Used for error actions. | 
|  | .radio-warning | Used for warning actions. | 
|  | .radio-info | Used for information actions. | 
Use the markups below to create select inputs.
To disable a select input, add the disabled parameter to it.
Use the markups below to create input switches.
Add the .input-switch CSS class to any checkbox or radio to create custom input switches.
You can use the color helper CSS classes to add different backgrounds to the custom input switches. You can change the color using the data-on-color parameter for the "On" state and data-off-color
        parameter for the "Off" state. Accepted values are primary, info, success, warning, danger, default
You can change the size of the input switches using the data-size parameter. Accepted values are mini, small, normal, large.
Use the markups below to create select inputs with custom styling.
Add the .custom-select CSS class to the radio input that you would like to have custom styling.
To create custom select inputs with searchable results you need to add the .chosen-select CSS class to the select input. Use the data-placeholder="Title here..." to add a title to the custom select. To make a Chosen select disabled, add the disabled parameter to it.
To create multiselect inputs, you need to add the multiple parameter to a select input.
To apply custom styling to multiple select inputs, add the .form-controlCSS class.
To create custom multiselect inputs with searchable results you need to add the .chosen-select CSS class to the select input and the multiple parameter.
To transform a basic multiple select input into a multiselect list, you need to add the .multi-select CSS class to it.
To apply styling to any textarea, you need to add to it the .form-control CSS class.
Below you will find a basic textarea example. Disable textarea by adding either the .disabled CSS helper class or the disabled parameter.
Textarea can have one of the following heights: .textarea-xs, .textarea-sm, .textarea-md, .textarea-lg.
Add the .textarea-no-resize CSS class to textareas to remove the possibility of resize.
Add the .textarea-autosize CSS class to textareas to auto-resize textareas as you type more text into them.
Add the .textarea-counter CSS class to textareas to add a remaining characters counter.
Use the markups below to create text inputs.
To apply styling to input fields, you need to add to it the .form-control CSS class. Add the disabled parameter to a text input to disable it.
To create autocomplete inputs you need to add the .autocomplete-input CSS class to an input field.
To create a spinner input you need to add the .spinner-input CSS class to an input field.
Extend form controls by adding text or buttons before, after, or on both sides of any text-based input. Use .input-group with an .input-group-addon to prepend or append elements to a single .form-control.
Place one add-on or button on either side of an input. You may also place one on both sides of an input.
Add the relative form sizing classes to the .input-group itself and contents within will automatically resizeāno need for repeating the form control size classes on each element.
Place any checkbox or radio option within an input group's addon instead of text.
Buttons in input groups are a bit different and require one extra level of nesting. Instead of .input-group-addon, you'll need to use .input-group-btn to wrap the buttons. This is required due to default browser styles that cannot be overridden.
Wrap <i class="glyph-icon icon-cog"></i> elements inside .input-group-addon to create outer icon addons.
Wrap <i class="glyph-icon icon-cog"></i> elements inside .input-group-addon to create inner icon addons.