0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Update JS-powered buttons docs to include single button example

Closes #25067
This commit is contained in:
Mark Otto 2017-12-24 14:25:18 -08:00 committed by Mark Otto
parent d5cbe696da
commit 1171e175c0

View File

@ -123,15 +123,9 @@ The checked state for these buttons is **only updated via `click` event** on the
Note that pre-checked buttons require you to manually add the `.active` class to the input's `<label>`.
{% example html %}
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<div class="btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="checkbox" checked autocomplete="off"> Active
</label>
<label class="btn btn-secondary">
<input type="checkbox" autocomplete="off"> Check
</label>
<label class="btn btn-secondary">
<input type="checkbox" autocomplete="off"> Check
<input type="checkbox" checked autocomplete="off"> Checked
</label>
</div>
{% endexample %}