Pixel UI/Forms/Checkbox

Checkbox

A pixel checkbox whose tick draws itself in, block by block.

<piix-checkbox>DOM + canvasForm-ready
Send me updates
Tone

A chunky pixel box. Tick it and the check mark draws itself in, block by block, with a puff of pixels; untick and it un-draws.

Installation

<!-- once, anywhere on the page: every component -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/piixpal.min.js"></script>

Usage

<piix-checkbox checked>Send me updates</piix-checkbox>

Examples

A list

Pixel corners Hard shadows Rounded corners

API reference

AttributeWhat it doesDefault
checkedticked–
tonethe box colour when tickedlime
namethe form field name–
valuesent when tickedon
disabledcan't be ticked–

Events

EventWhen
changewhen it is ticked or unticked

Accessibility