{% set title = 'Form Element' %} {% set page = 'form-element.html' %} {% extends "layouts/main.html" %} {% block css%} {% endblock %} {% block content %}
Form Element

#### Default Form

Basic Input
With Helper Text Top @description top
Disabled Input
With Helper Text Bottom
Description Bottom
Read Only Input
Read Only Plain Text
Example textarea

#### Input Sizing

Set heights using classes like `.form-control-lg` and `.form-control-sm`.

Small Input
Default Input
Large Input

#### Horizontal form label sizing

Be sure to use `.col-form-label-sm` or `.col-form-label-lg` to your `<label>`s or `<legend>`s to correctly follow the size of `.form-control-lg` and `.form-control-sm`.

Email
Email
Email

#### Select Sizing

You may also choose from small and large custom selects to match our similarly sized text inputs.

#### checkbox

Default checkbox
Checked checkbox

Add the `disabled` attribute and the associated `<label>`s are automatically styled to match with a lighter color to help indicate the input’s state.

Disabled checkbox
Disabled checked checkbox

#### Radio

Default radio
Default checked radio

Add the `disabled` attribute and the associated `<label>`s are automatically styled to match with a lighter color to help indicate the input’s state.

Disabled radio
Disabled checked radio

#### Inline Checkbox & Radio

Group checkboxes or radios on the same horizontal row by adding `.form-check-inline` to any `.form-check`.

1
2
3 (disabled)

Add the `disabled` attribute and the associated `<label>`s are automatically styled to match with a lighter color to help indicate the input’s state.

1
2
3 (disabled)

#### Switch

Default switch checkbox input
Checked switch checkbox input

Add the `disabled` attribute and the associated `<label>`s are automatically styled to match with a lighter color to help indicate the input’s state.

Disabled switch checkbox input
Disabled checked switch checkbox input

#### Range

By default, range inputs “snap” to integer values. To change this, you can specify a `step` value. In the example below, we double the number of steps by using `step="0.5"`.

Example range

#### Input Group

Place one add-on or button on either side of an input. You may also place one on both sides of an input. Remember to place `<label>`s outside the input group.

@
@example.com
Your vanity URL
https://example.com/users/
$ .00
@
With textarea

#### Input Group

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.

Small
Default
Large

Place any checkbox or radio option within an input group’s addon instead of text. We recommend adding `.mt-0` to the `.form-check-input` when there’s no visible text next to the input.

#### Input Group Multiple Input

While multiple `<input>`s are supported visually, validation styles are only available for input groups with a single `<input>`.

First and last name

#### Input Group Multi Addons

Multiple add-ons are supported and can be mixed with checkbox and radio input versions.

$ 0.00
$ 0.00

#### Input Addon

While multiple `<input>`s are supported visually, validation styles are only available for input groups with a single `<input>`.

#### Input Addon Dropdown

{% endblock %} {% block js %} {% endblock %}