Give textual form controls like <input>s and <textarea>s an upgrade with custom styles, sizing, focus states, and more.
Sample Code
Output
Bootstrap Form Control Sizing
Set heights using classes like .form-control-lg and .form-control-sm.
Sample Code
Output
Bootstrap Form Control Disabled
Add the disabled boolean attribute on an input to give it a grayed out appearance, remove pointer events, and prevent focusing.
Sample Code
Output
Bootstrap Form Control Readonly
Add the 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.
Sample Code
Output
Bootstrap Form Control Readonly plain text Example 1
If you want to have <input readonly> elements in your form styled as plain text, replace .form-control with .form-control-plaintext to remove the default form field styling and preserve the correct margin and padding.
Sample Code
Output
Bootstrap Form Control Readonly plain text Example 2
Sample Code
Output
Bootstrap Form Control File input
This will create a form group with a label and a file input. The form-control class is used to style the file input component to match the rest of the Bootstrap form elements.
Sample Code
Output
Bootstrap Form Control Color
Set the 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.
Sample Code
Output
Bootstrap Form Control Datalists
Datalists allow you to create a group of <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.
Related Searches to Bootstrap Form Controls - Bootstrap 5 Form Examples
bootstrap form control select bootstrap form-control css code bootstrap form control border color bootstrap form-control background color bootstrap form control remove outline react bootstrap form control react bootstrap form control date react bootstrap form control date format react bootstrap form control max length react bootstrap form control validation react bootstrap form control onchange react bootstrap form control select multiple react bootstrap form control width react bootstrap form control select react bootstrap form control type bootstrap 5 form control bootstrap 4 form control bootstrap class form-control bootstrap 4 form-control width bootstrap react form control bootstrap change width of form control