Use .form-control-solid
class with .form-control
to set solid background style for a form control.
<input type="text" class="form-control" placeholder="name@example.com"/>
<input type="text" class="form-control form-control-solid" placeholder="name@example.com"/>
<input type="text" class="form-control form-control-transparent" placeholder="name@example.com"/>
Use .form-control-flush
class with .form-control
to remove the default background-color, borders, and rounded corners of a form input.
<input type="email" class="form-control form-control-flush" placeholder="Example input"/>
Use .required
class with .form-label
or any custom element to indicate input's mandatory status.
<div class="mb-10">
<label for="exampleFormControlInput1" class="required form-label">Symbol in label</label>
<input type="email" class="form-control form-control-solid" placeholder="Example input"/>
</div>
<div class="mb-0">
<label for="exampleFormControlInput1" class="form-label">Symbol in input</label>
<div class="position-relative">
<div class="required position-absolute top-0"></div>
<input type="email" class="form-control form-control-solid" placeholder="Example input"/>
</div>
</div>
Use .form-select-solid
class with .form-select
to set solid background style for a form select.
<select class="form-select" aria-label="Select example">
<option>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</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>
</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>
</select>
Use .form-range
class with .form-select
to set solid background style for a form select.
<div class="mb-10">
<label for="customRange1" class="form-label">Example range</label>
<input type="range" class="form-range" id="customRange1" />
</div>
<div class="mb-0">
<label for="customRange1" class="form-label">Disabled range</label>
<input type="range" class="form-range" id="customRange1"disabled />
</div>