design-infraGitHub
Report a problem or share feedback← Catalog

Clerk: Conditional Field

free

motion/clerk-conditional-field

A password field that animates into a sign-in form only when it's needed. The container animates its measured height with Motion's resize() util while the field fades in.

enter — mediumrecipeRefinedTrustworthyPlayful
$pnpm add motion # then adapt the free source from https://motion.dev/examples/react-clerk-conditional-field

npm deps: motion

Clerk: Conditional Field preview
Source
Motion (motion.dev)
Kind
transition
Categories
transition, input, form
Use as
recipe — technique you apply to your own markup
Applies to
forminput
Motion
on enter · medium · motion · medium cost
Tags
motion, AnimatePresence, MotionConfig, animate
Licence
motion / motion/react / motion-v are MIT. Motion+ (premium components, example source, AI Kit pro tools) is paid — one-time Personal licence or per-seat Business.
Live demo
motion.dev
Docs
motion.dev