Password Field
Field's layout with an in-input show/hide toggle. The masked state is owned internally; the value stays controlled via @change.
Installation
Copy the piece into your app — it compiles with your build and the code is yours:
puzzle add piece password-field
Requires the pieces.css tokens merged into your app styles (see Introduction).
Usage
import PasswordField from '@/components/ui/PasswordField.pzl';
<PasswordField label="Password" value={ password } @change={ setPassword } />With hint
At least 8 characters
Error
Too short — use at least 8 characters