Vibary.ai
← Vibe Coding

Invite Code Accept

A valid invite code turns the field into the workspace tile it lets you into.

authenticationenergeticfriendlyinteraction · finite · intermediate · ~0.8s
Interactive · click to play
Variant

The animated component in this preview is rendered from the canonical file shown here. The surrounding demo shell only provides context and is not part of the copied code.

336 lines · react + motion only
import { useEffect, useRef, useState } from "react";
import { AnimatePresence, motion, useReducedMotion } from "motion/react";

/**
 * Vibary · Invite Code Accept
 *
 * A valid invite code stops being a string and becomes the place it lets
 * you into: the field grows into a workspace tile in one move, so the

About this pattern

An invite code is an abstraction until it resolves into a place. Rather than clearing the field and rendering a result somewhere else, the field itself grows into the workspace tile: same container, same position, contents crossfading inside it. The height change tweens on an ease because it is a real size change, while the tile contents rise on a spring that lands without a rebound — the workspace name is text, and text that bounces reads as cheap. A short checking state with a rotating arc holds the button width steady so nothing reflows while the code is verified, and the confirmation check draws last.

Accepting a workspace invitationRedeeming a join codeTeam onboarding entry screenBeta access code entry

Where it shows up

Screens we drew to show where this motion usually sits. Illustrations, not captures of any product.

  • Set up your workspaceStep 2 of 4
    What should we call it?
    Ridgeline
    Who else is joining?
    3 invited
    Next
    Onboarding flow

    A code screen that resolves into the named workspace before you enter it.

Related patterns