Overview
Metronic customizes the
Bootstrap Forms through the SASS variables in
src/sass/components/_variables.scssand adds additonal options for the form elements in
src/sass/components/forms/.
Use
.form-control-solidclass with
.form-controlto set solid background style for a form control:
Use
.form-control-flushclass with
.form-controlto remove the default background-color, borders, and rounded corners of a form input.
Use
.requiredclass with
.form-labelor any custom element to indicate input's mandatory status:
Use
.form-select-solidclass with
.form-selectto set solid background style for a form select:
Default select
Open this select menu
One
Two
Three
Solid background style
Open this select menu
One
Two
Three
Transparent background style
Open this select menu
One
Two
Three
copy
<select class="form-select" aria-label="Select example">
<option>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
<select class="form-select form-select-solid" aria-label="Select example">
<option>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
<select class="form-select form-select-transparent" aria-label="Select example">
<option>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
Use
.form-rangeclass with
.form-selectto set solid background style for a form select: