Build Components

Cipher

Password field. Rules read with the field, strength said in words, and a show button that says its state.

Component
Password field
Pattern
Labelled input + live rules
Outputs
React + Tailwind, HTML/CSS/JS
Status
In stock, tested

Test bench

Runs the exported code, not a mock-up.

Output

Cipher · React + TailwindFull width

Keyboard map
KeysWhat happens
TabMove from the field to the show button.
EnterorSpaceShow or hide what you have typed.

Take it home

React + Tailwind CSS v4: install with one command, or copy the file. Your options are already in it.

npx shadcn@latest add "/r/password.json"

Run it in your project root. It writes components/password.tsx with the options you set here. Needs Tailwind CSS v4 and a project set up for the shadcn CLI (npx shadcn@latest init).