Update JS-powered buttons docs to include single button example
Closes #25067
This commit is contained in:
parent
d5cbe696da
commit
1171e175c0
|
@ -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>`.
|
Note that pre-checked buttons require you to manually add the `.active` class to the input's `<label>`.
|
||||||
|
|
||||||
{% example html %}
|
{% 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">
|
<label class="btn btn-secondary active">
|
||||||
<input type="checkbox" checked autocomplete="off"> Active
|
<input type="checkbox" checked autocomplete="off"> Checked
|
||||||
</label>
|
|
||||||
<label class="btn btn-secondary">
|
|
||||||
<input type="checkbox" autocomplete="off"> Check
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-secondary">
|
|
||||||
<input type="checkbox" autocomplete="off"> Check
|
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
Loading…
Reference in New Issue