Forms¶
Basic Input¶
<div class="mb-3">
<label class="form-label">Email address</label>
<input type="email" class="form-control" placeholder="name@example.com">
</div>
Select¶
<select class="form-select">
<option selected>Choose...</option>
<option value="1">Option 1</option>
</select>
Switches and Checkboxes¶
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="switch1" checked>
<label class="form-check-label" for="switch1">Enabled</label>
</div>
Input Sizes¶
<input class="form-control form-control-lg" placeholder="Large">
<input class="form-control" placeholder="Default">
<input class="form-control form-control-sm" placeholder="Small">
Usage Guidelines¶
- Always use
<label>elements withforattributes - Use
form-controlfor all text inputs - Use
form-selectfor dropdowns - Group related fields with
mb-3spacing - Use
form-check form-switchfor toggles,form-checkfor checkboxes