Open gdebrauwer opened 1 month ago
So...whats the use of it? What does it help someone actually do over using a normal checkbox?
If you want to create custom-styled checkboxes. For example, If you need to implement checkboxes in a design like this:
If you want to create custom-styled checkboxes. For example, If you need to implement checkboxes in a design like this:
won't you just do
<label class="...">
<div>
<span class="...">Hobby</span>
<span class="...">$40</span>
</div>
<div>
<span class="...">8 GB ...</span>
<span class="...">/mo</span>
</div>
<input type="checkbox" style="visibility: hidden; position: absolute" />
</label>
? You don't really need javascript for something that easy.
That being said Headless UI has it so I guess Alpine UI should have it if the goal is feature parity.
won't you just do
Probably want the checkbox as the first child, so that you can do the peer selectors input:checked ~ div
A “radio” component exists in the UI package, but a checkbox component does not exist yet. This is an attempt at adding such component. This is still a Work In Progress, but before I spend more time on this I want to check if this is the correct direction for a “checkbox” component.
A single checkbox
A group of checkboxes