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.json

Or, 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

Component props
PropTypeDefaultNotes
value / defaultValue / onValueChangestring—Controlled or uncontrolled value.
rules{ id, label, test }[]DEFAULT_PASSWORD_RULESUp to five rules; each grows one shard.
onStrengthChange(score, label) => void—Fires when the score changes.
label / placeholder / namestring—Field copy and form name.
showSuggestbooleantrueShow the password forge button.

Dependencies

  • motion
  • lucide-react
  • 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…

See all 3 Inputs / Forms components