structyl

Password Toggle Field

stable

A password input with a show / hide toggle.

Basic usage

Examples

With label and strength hint

Wrap in a field layout and add a password strength message.

Use at least 8 characters with letters and numbers.

Password form field

Combine the root, input and toggle parts with labels and helper text.

Use at least 12 characters.

Features

  • Accessible visibility toggle.
  • Controlled or uncontrolled.

Installation

bash
pnpm dlx structyl add password-toggle-field

API Reference

Password Toggle Field API reference

Full props, types, defaults, and all 4 parts.

View API
Password Toggle Field | structyl