Add switch class for checkboxes (fixes #70)

This commit is contained in:
daudix
2024-09-01 04:51:44 +03:00
parent 65770c2d93
commit 82d82cc811
3 changed files with 81 additions and 26 deletions

View File

@ -334,6 +334,36 @@ Available variables are:
</li>
</ul>
With `switch` class:
```html
<input class="switch" type="checkbox" />
<label>Checkbox</label>
```
<ul>
<li>
<input class="switch" type="checkbox" />
<label>&nbsp;Milk</label>
</li>
<li>
<input class="switch" type="checkbox" />
<label>&nbsp;Eggs</label>
</li>
<li>
<input class="switch" type="checkbox" />
<label>&nbsp;Flour</label>
</li>
<li>
<input class="switch" type="checkbox" checked />
<label>&nbsp;Coffee</label>
</li>
<li>
<input class="switch" type="checkbox" disabled />
<label>&nbsp;Combustible lemons</label>
</li>
</ul>
With `radio` type:
```html