Loading...

Forms elements View all kinds of Forms elements examples below.

Forms elements

Use the examples below to build your forms.

Basic

All form elements like, inputs, selects, textareas should have the .form-controlCSS class. Each form row should have the .form-groupCSS class.

Example block-level help text here.

Inline

To create an inline form add the .form-inlineCSS class to the <form>element.

Horizontal form

To create a horizontal form add the .form-horizontalCSS class to the <form>element.

Checkbox

Use the markups below to create form layouts with checkboxes.

Vertical layout

Use the markup below to vertically align checkbox inputs.

Horizontal layout

Use the .checkbox-inlineclasses on a series of checkboxes or checkboxes for controls that appear on the same line.

Custom checkbox

Add the .custom-checkboxCSS class to the checkbox input that you would like to have custom styling.

Background colors

You can use the color helper CSS classes to add different backgrounds to the custom checkbox inputs.

Theme inherited

The .checkbox-primarycolor 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.

ResultHelper classDescription
.checkbox-primaryThis is the primarybackground color.

Framework inherited

The color helper classes below come packed with the framework.

ResultHelper classDescription
.checkbox-successUsed for successactions.
.checkbox-dangerUsed for erroractions.
.checkbox-warningUsed for warningactions.
.checkbox-infoUsed for informationactions.

Radio

Use the markups below to create form layouts with radios.

Vertical layout

Use the markup below to vertically align radio inputs.

Horizontal layout

Use the .radio-inlineclasses on a series of radios or radios for controls that appear on the same line.

Custom radio

Add the .custom-inputCSS class to the radio input that you would like to have custom styling.

Background colors

You can use the color helper CSS classes to add different backgrounds to the custom radio inputs.

Theme inherited

The .radio-primarycolor 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.

ResultHelper classDescription
.radio-primaryThis is the primarybackground color.

Framework inherited

The color helper classes below come packed with the Supina Framework.

ResultHelper classDescription
.radio-successUsed for successactions.
.radio-dangerUsed for erroractions.
.radio-warningUsed for warningactions.
.radio-infoUsed for informationactions.

Select

Use the markups below to create select inputs.

Basic

To disable a select input, add the disabledparameter to it.


Input switches

Use the markups below to create input switches.

Basic

Add the .input-switchCSS class to any checkbox or radio to create custom input switches.

Background colors

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-colorparameter for the "On" state and data-off-colorparameter for the "Off" state. Accepted values are primary, info, success, warning, danger, default

Sizing

You can change the size of the input switches using the data-sizeparameter. Accepted values are mini, small, normal, large.

Custom selects

Use the markups below to create select inputs with custom styling.

Basic

Add the .custom-selectCSS class to the radio input that you would like to have custom styling.


Chosen select

To create custom select inputs with searchable results you need to add the .chosen-selectCSS 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 disabledparameter to it.



Multiselect

To create multiselect inputs, you need to add the multipleparameter to a select input.

Basic

To apply custom styling to multiple select inputs, add the .form-controlCSS class.

Chosen multiselect

To create custom multiselect inputs with searchable results you need to add the .chosen-selectCSS class to the select input and the multipleparameter.



Multiselect list

To transform a basic multiple select input into a multiselect list, you need to add the .multi-selectCSS class to it.

Textarea

To apply styling to any textarea, you need to add to it the .form-controlCSS class.

Basic

Below you will find a basic textarea example. Disable textarea by adding either the .disabledCSS helper class or the disabledparameter.


Sizing

Textarea can have one of the following heights: .textarea-xs, .textarea-sm, .textarea-md, .textarea-lg.



No resize

Add the .textarea-no-resizeCSS class to textareas to remove the possibility of resize.

Autoresize

Add the .textarea-autosizeCSS class to textareas to auto-resize textareas as you type more text into them.

Character count

Add the .textarea-counterCSS class to textareas to add a remaining characters counter.

125 characters left

Input

Use the markups below to create text inputs.

Basic

To apply styling to input fields, you need to add to it the .form-controlCSS class. Add the disabledparameter to a text input to disable it.


Autocomplete

To create autocomplete inputs you need to add the .autocomplete-inputCSS class to an input field.

Spinner

To create a spinner input you need to add the .spinner-inputCSS class to an input field.

Input groups

Extend form controls by adding text or buttons before, after, or on both sides of any text-based input. Use .input-groupwith an .input-group-addonto prepend or append elements to a single .form-control.

Basic

Place one add-on or button on either side of an input. You may also place one on both sides of an input.

@
.00
$.00

Sizing

Add the relative form sizing classes to the .input-groupitself and contents within will automatically resize—no need for repeating the form control size classes on each element.

@
@
@

Checkboxes & radios addons

Place any checkbox or radio option within an input group's addon instead of text.

Buttons addons

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-btnto wrap the buttons. This is required due to default browser styles that cannot be overridden.

Icons addons

Wrap <i class="glyph-icon icon-cog"></i>elements inside .input-group-addonto create outer icon addons.

Inside icons addons

Wrap <i class="glyph-icon icon-cog"></i>elements inside .input-group-addonto create inner icon addons.

Online
Idle
Offline
Cloud status
Latest transfers
Tasks for today
Pending notifications New