.form-control-lg and .form-control-sm.
<select> menus need only a custom class, .form-select to trigger the custom styles.
.form-select-lg and .form-select-sm.
disabled boolean attribute on an input to prevent user interactions and make it appear lighter.
fieldset example.
readonly boolean attribute on an input to prevent modification of the input’s value. readonly inputs can still be focused and selected, while disabled inputs cannot.
<input readonly> elements in your form styled as plain text, replace .form-control with .form-control-plaintext to remove the default form field styling.
readonly boolean attribute on an input to prevent modification of the input’s value. readonly inputs can still be focused and selected, while disabled inputs cannot.
type="color" and add .form-control-color to the <input>. We use the modifier class to set fixed heights and override some inconsistencies between browsers.
<option>s that can be accessed (and autocompleted) from within an <input>. These are similar to <select> elements, but come with more menu styling limitations and differences. While most browsers and operating systems include some support for <datalist> elements, their styling is inconsistent at best.
.form-check-inline to any .form-check.
disabled attribute and the associated <label>s are automatically styled to match with a lighter color to help indicate the input’s state.
.form-switch class to render a toggle switch.
.form-check-inline to any .form-check.
disabled attribute and the associated <label>s are automatically styled to match with a lighter color to help indicate the input’s state.
.btn styles rather than .form-check-label on the <label> elements.
<input type="range"> controls with .form-range. The track (the background) and thumb (the value) are both styled to appear the same across browsers.
disabled boolean attribute on an input to give it a grayed out appearance, remove pointer events, and prevent focusing.
step value. In the example below, we double the number of steps by using step="0.5".
s outside the input group.
flex-wrap: wrap in order to accommodate custom form field validation within an input group. You may disable this with .flex-nowrap.
.mt-0 to the .form-check-input when there’s no visible text next to the input.
<input>s are supported visually
<input>s are supported visually