# Password Validator

> A floating-label password field with a live requirement checklist, a Weak / Average / Strong strength meter, and a visibility toggle — a graph-paper card that is fully token-driven and design-system agnostic.

- Category: Password
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Orchard
- Dark mode: yes
- Access: premium (Atheros AI Pass)
- Tags: validation, strength-meter, form
- Page: https://builder.atheros.ai/components/password-validator
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_password_validator/preview-cde47950b113.webp

## Features

- Floating-label underline field whose rule, label, and eye toggle turn `primary` on focus
- Real-time validation that re-evaluates every requirement on each keystroke
- Requirement checklist with cross / check Tabler marks that flip as each rule is satisfied, staggered in on mount
- Marks and the level word only re-render when their state actually changes, so the pop and fade play once per transition instead of restarting on every keystroke
- Strength meter that scales its fill from the left across Weak / Average / Strong tiers (no width transitions)
- Level word recolored to match the meter fill, with AA-safe status inks derived from the design system
- Checklist heading, strength caption, and unmet rule copy carry derived quiet inks that hold 4.5:1 in every design system, light and dark
- Password visibility toggle with eye / eye-off Tabler icons and `aria-pressed` state
- Graph-paper canvas drawn from tokens, so the ground retones with every design system
- Dark theme driven by a `dark` class on `body` with every derived role redeclared in the dark scope
- Accessible: `role="progressbar"` meter, polite live region, focus-visible indicators, reduced-motion support
- Responsive: comfortable layout down to 280px

## Accessibility

- **Strength meter** — `role="progressbar"` with `aria-valuenow`, `aria-valuemax`, and `aria-valuetext`
- **Level word** — `role="status"` with `aria-live="polite"` announces tier changes
- **Requirement rows** — Each row carries an `aria-label` that states met / not met
- **Visibility toggle** — `<button>` with `aria-label` and `aria-pressed`
- **Input label** — `<label for>` association plus `aria-describedby` and `aria-invalid`
- **Focus indicators** — `:focus-visible` with `--ring` outline on the toggle; the field underline turns `primary`
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all animations

## Keyboard shortcuts

- `Enter / Space` — Activate the focused eye toggle

## Common questions

**Which frameworks is Password Validator available in?**

Password Validator ships as Vanilla, React + CSS and React + Tailwind — HTML, CSS, JS and React source you can copy, download or clone into Atheros AI Builder.

**Is Password Validator free?**

Password Validator is a premium component. Anyone can preview it; the source, downloads and AI customisation are included with Atheros AI Pass.

**Does Password Validator support dark mode?**

Yes. Password Validator ships light and dark themes, both drawn from the Orchard design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Password Validator live, then sign in to copy or download the source, apply another design system, or ask the AI assistant to change it: https://builder.atheros.ai/components/password-validator

Every component on https://builder.atheros.ai is also reachable from Claude Code, Cursor and Codex through the Atheros MCP server (paid plans). Component index: https://builder.atheros.ai/llms-components.txt
