CodeBlessU
learn code with examples

Bootstrap Forms Toggle Button

Example links are referring to Bootstrap official site.

Bootstrap 5 Forms Toggle Button

Checkbox and radio component can be shown as button.

This example shows how to use bootstrap classes.

  1. Use class="btn-check" with input type="checkbox" or input type="radio"
  2. Use class="btn" with label. Text within label will be visible as text on button.
Demo (Checkbox toggle button),  Demo (Radio toggle button).

In this page...

Copyright © All rights reserved.