Native Solid 2 fork. Original documentation and designs © WorkOS; historical posts retain their original context.
Password Toggle Field
A password input field with an integrated button to toggle the value's visibility.
Features
Returns focus to the input when toggling with a pointer
Maintains button focus when toggling with keyboard or virtual navigation
Resets visibility to hidden after form submission to prevent accidental storage
Implicit accessible labeling for icon-based toggle buttons
Anatomy
Import all parts and piece them together.
API Reference
Root
Contains all the parts of a password toggle field.
Input
Renders a the input containing the password value.