design-infraGitHub
Report a problem or share feedback← Catalog

Clerk: User Button

free

motion/clerk-user-button

A custom Clerk user button built with Motion. The closed avatar expands into an account menu, using Motion's resize() util to animate the container to the menu's measured height.

state — mediumrecipeRefinedPlayful
$pnpm add motion # then adapt the free source from https://motion.dev/examples/react-clerk-user-button

npm deps: motion

Clerk: User Button preview
Source
Motion (motion.dev)
Kind
transition
Categories
transition, button, navigation
Use as
recipe — technique you apply to your own markup
Applies to
buttonnavigation
Motion
on state · medium · motion · medium cost
Tags
motion, AnimatePresence, animate, layoutId
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