A selection of lightweight Bootstrap 4 UI components.
Add class form-group-floating-label
to the form-group
wrapper.
<div class="form-group form-group-floating-label"> <label>This is a label</label> <input type="text" class="form-control" placeholder="Floating label"> </div>
type="search"
<div class="form-group"> <input type="search" class="form-control" placeholder="I'm a placeholder..." value="Press X to delete this value"> </div>
disabled
or readonly
<div class="form-group"> <input type="text" class="form-control" placeholder="I'm a placeholder..." disabled> </div>
form-control-xs
<div class="form-group"> <input type="text" class="form-control form-control-xs" placeholder="I'm a placeholder..."> </div>
form-control-xl
<div class="form-group"> <input type="text" class="form-control form-control-xl" placeholder="I'm a placeholder..."> </div>
form-control-icon-calendar
<div class="form-group"> <input type="text" class="form-control form-control-icon-calendar" placeholder="Pick a date..."> </div>
form-control-icon-time
<div class="form-group"> <input type="text" class="form-control form-control-icon-time" placeholder="Pick a time..."> </div>
form-control-monospace
<div class="form-group"> <input type="text" class="form-control form-control-monospace form-control-monospace-focus" placeholder="________"> </div>
form-control-monospace-focus
<div class="form-group"> <input type="text" class="form-control form-control-monospace-focus" placeholder="________" value="12345678"> </div>