Text Elements

Give textual form controls like inputs and textareas an upgrade with custom styles, sizing, focus states, and more. Read the Official Bootstrap Documentation for a full list of instructions and other options.


Basic Example

Examples and usage guidelines for form control styles, layout options, and custom components for creating a wide variety of forms.




Sizing

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




Disabled

Add the disabled boolean attribute on an input to give it a grayed out appearance and remove pointer events.




Readonly

Add the readonly boolean attribute on an input to prevent modification of the input’s value.

If you want to have input readonly elements in your form styled as plain text, use the .form-control-plaintext class to remove the default form field styling and preserve the correct margin and padding.




File Input

The file input is the most gnarly of the bunch and requires additional JavaScript if you’d like to hook them up with functional Choose file… and selected file name text.