Search...

Checkbox

Bootstrap 5 Checkbox

Bootstrap 5 Checkbox is a component that allows a user to make multiple selections. This component is commonly used in forms and surveys.

They are used to pick one or more items from a list, whereas radios are used to select one option from several.

Default Checkbox

HTML
html
<div class="custom-check">
<input class="custom-check-input" type="checkbox" value="" id="defaultCheck1" />
<label class="custom-check-label" for="defaultCheck1">
Default checkbox
</label>
</div>
<div class="custom-check">
<input class="custom-check-input" type="checkbox" value="" id="defaultCheck2" disabled />
<label class="custom-check-label" for="defaultCheck2">
Disabled checkbox
</label>
</div>

Inline Checkbox

Pro Component
HTML
html
<div class="custom-check form-check-inline">
<input class="custom-check-input" type="checkbox" value="" id="Checkbox1" />
<label class="custom-check-label" for="Checkbox1">
Checkbox 1
</label>
</div>
<div class="custom-check form-check-inline">
<input class="custom-check-input" type="checkbox" value="" id="Checkbox2" />
<label class="custom-check-label" for="Checkbox2">
Checkbox 2
</label>
</div>

Styled Checkboxes

Pro Component
HTML
html
<div class="custom-check">
<input
class="custom-check-input text-primary bg-warning"
type="checkbox"
value=""
id="Checkbox3"
/>
<label class="custom-check-label" for="Checkbox3">
checkbox 3
</label>
</div>
<div class="custom-check">
<input class="custom-check-input" type="checkbox" value="" id="Checkbox4" />
<label class="custom-check-label" for="Checkbox4">
checkbox 4
</label>
</div>
<div class="custom-check">
<input
class="custom-check-input border-primary text-primary"
type="checkbox"
value=""
id="Checkbox5"
/>
<label class="custom-check-label text-primary" for="Checkbox5">
checkbox 5
</label>
</div>

Build modern projects using Bootstrap 5 and Contrast

Trying to create components and pages for a web app or website from scratch while maintaining a modern User interface can be very tedious. This is why we created Contrast, to help drastically reduce the amount of time we spend doing that. so we can focus on building some other aspects of the project.

Contrast Bootstrap PRO consists of a Premium UI Kit Library featuring over 10000+ component variants. Which even comes bundled together with its own admin template comprising of 5 admin dashboards and 23+ additional admin and multipurpose pages for building almost any type of website or web app.
See a demo and learn more about Contrast Bootstrap Pro by clicking here.

ad-banner