Searching Puzzle Pieces

Type to search Puzzle Pieces.

Label

An accessible native label element for a form control. Point its for at the control's id so a click focuses it and screen readers announce the pairing.

Installation

Copy the piece into your app — it compiles with your build and the code is yours:

puzzle add piece label

Requires the pieces.css tokens merged into your app styles (see Introduction).

Usage

import Label from '@/components/ui/Label.pzl';
<Label for="email">Email address</Label>

With form pieces