@extends('layouts.master') @section('title', 'Metrica - Admin & Dashboard Template') @section('content')
Here are examples of .form-control applied to each
textual HTML5 <input> type.
Basic example to demonstrate Bootstrap’s form styles.
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.
Custom stylr example.
Use the .form-inline class to display a series of labels, form controls, and buttons on a single horizontal row.
Form controls within inline forms vary slightly from their default states..
Set heights using classes like .form-control-lg and .form-control-sm.
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.
Here’s lang(es) in action on the custom file input for a Spanish translation:
Basic example to demonstrate Bootstrap’s form styles.
Create custom <input type="range"> controls with .custom-range.
Set horizontally scrollable range inputs using .form-control-range.
A switch has the markup of a custom checkbox but uses the .custom-switch class to render
a toggle switch. Switches also support the disabled attribute.
For even more customization and cross browser consistency, use our completely custom form elements to replace the browser defaults. They’re built on top of semantic and accessible markup, so they’re solid replacements for any default form control.
For even more customization and cross browser consistency, use our completely custom form elements to replace the browser defaults. They’re built on top of semantic and accessible markup, so they’re solid replacements for any default form control.
Our example forms show native textual <input>s above, but form validation styles are available for our custom form controls, too.
We recommend using client side validation,
but in case you require server side, you can indicate invalid and valid form
fields with .is-invalid and .is-valid.
Note that .invalid-feedback
is also supported with these classes.
Easily extend form controls by adding text, buttons, or button groups on either side of textual inputs, custom selects, and custom file inputs.
Easily extend form controls by adding text, buttons, or button groups on either side of textual inputs, custom selects, and custom file inputs.