Answers for "bootstrap toggle buttons"

9

bootstrap 4 button

<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn btn-dark">Dark</button>

<button type="button" class="btn btn-link">Link</button>
Posted by: Guest on April-02-2020
2

bootstrap buttons Toggle states

Add data-toggle="button" to toggle a button’s active state. If you’re 
pre-toggling a button, you must manually add the .active class and
aria-pressed="true" to the <button>.

<button type="button" class="btn btn-primary" data-toggle="button" aria-pressed="false">
  Single toggle
</button>
Posted by: Guest on October-23-2020

Browse Popular Code Answers by Language