Crystal Strength Password
A password field that grows an SVG crystal: each satisfied rule springs a faceted shard out of the rock, the cluster shifts from ember to glacier, and a perfect score turns it iridescent with glints. Includes show/hide and a forged suggestion that scrambles in.
Try it: Type a password or press “Suggest one”.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/crystal-strength-password.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/crystal-strength-password. You can also copy the source into components/ui/crystal-strength-password.tsx (view on GitHub).
Usage
import { CrystalStrengthPassword } from '@/components/ui/crystal-strength-password'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
value / defaultValue / onValueChange | string | — | Controlled or uncontrolled value. |
rules | { id, label, test }[] | DEFAULT_PASSWORD_RULES | Up to five rules; each grows one shard. |
onStrengthChange | (score, label) => void | — | Fires when the score changes. |
label / placeholder / name | string | — | Field copy and form name. |
showSuggest | boolean | true | Show the password forge button. |
Dependencies
motionlucide-react
Related Inputs / Forms components
- Signature Pad Field
An e-signature field: draw with mouse, pen or finger and the ink thins on fast strokes and pools on slow ones; undo stroke by stroke, or switch to the Type tab for a keyboard-friendly script…
- Tumbler Lock OTP
A one-time-code field built from combination-lock drums on real CSS-3D cylinders; each digit whirrs a full turn before landing, a padlock checks the code and springs open — or shakes and spins every…