skip the tree
system / motion / clerk4 rebuilds
Clerk
The Clerk examples of the Motion library, rebuilt in Composite: the same trigger, in steps, with the system's own parts.
the category
motion/_rebuilds- rebuilds
- 4
- from motion+
- 0
- easing
- steps() only
motion / clerk / clerk: card stack
after a motion.dev examplesubmit, then verify
margin_rebuilds/clerk/clerk-card-stack.tsx
- Motion
- AnimatePresence, variants
- here
- a cut, then a Step-in
- steps
- email, code, signed in
- resend
- 30 s, a second a step
- original
- Clerk: Card Stack
Each step is one card that cuts in place of the last; its parts step in, one a step. The wait before a new code counts down a second a step.
motion / clerk / clerk: conditional field
after a motion.dev examplesubmit an email, then the password
margin_rebuilds/clerk/clerk-conditional-field.tsx
- Motion
- AnimatePresence, resize
- here
- a cut
- first submit
- the password field shows
- second submit
- back to the email
- original
- Clerk: Conditional Field
The password field cuts in under the email, and the card is as tall as its parts; nothing grows between the two heights.
motion / clerk / clerk: sign-in-or-up
after a motion.dev examplecontinue with an email, then the password
margin_rebuilds/clerk/clerk-sign-in.tsx
- Motion
- AnimatePresence, variants
- here
- a cut, then a Step-in
- known
- a greeting, a password
- new
- create an account
- original
- Clerk: Sign-in-or-up
One form, two ends: the title and the fields cut to the sign-in or the sign-up, and the parts of the new step cut in one step apart.
motion / clerk / clerk: user button
after a motion.dev exampleopen the account menu
margin_rebuilds/clerk/clerk-user-button.tsx
- Motion
- AnimatePresence, layoutId
- here
- a cut, then a Step-in
- opens
- from the avatar, on click or key
- rows
- the card, then each item
- original
- Clerk: User Button
The menu cuts in at the avatar; its card and its two items step in, one a step.