Basic forms

Textual form controls—like <input>s, <select>s, and <textarea>s—are styled with the .form-control class. Included are styles for general appearance, focus state, sizing, and more.

Select menu

Custom <select> menus need only a custom class, .custom-select to trigger the custom styles. Custom styles are limited to the <select>’s initial appearance and cannot modify the <option>s due to browser limitations.

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

Custom file input

For file inputs, swap the .form-control for .form-control-file.

Pilled

Use the .form-control-pill and .custom-select-pill modifier classes to make forms more rounded (with a larger border-radius and additional horizontal padding).

Borderless

Add .input-group-borderless for an input and .custom-select-borderless for a select without borders.

Flush

Add .form-control-flush and .custom-select-flush to remove some borders and rounded corners to render input edge-to-edge in a parent container.

Light

.form-control-light and .custom-select-light classes add light background color.

Hover light

.form-control-hover-light and .custom-select-hover-light add light background color on hover.

Range input

Sizing

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

Disabled & Readonly Fields

Use readonly or disabled attributes for .form-control

Validation states

It provides valuable, actionable feedback to your users with HTML5 form validation.