Checkbox
A checkbox built on a native input element, with an optional label and hint. The whole row is a label, so a click anywhere toggles it; state is controlled through a @change callback.
Installation
Copy the piece into your app — it compiles with your build and the code is yours:
puzzle add piece checkbox
Requires the pieces.css tokens merged into your app styles (see Introduction).
Usage
import Checkbox from '@/components/ui/Checkbox.pzl';
<Checkbox label="Subscribe to the newsletter" checked={ subscribe } @change={ setSubscribe } />