Join pile Pro
One payment, every Pro piece. $9 tomorrow.
Install
npx shadcn@latest add @mu-pro/join-pilePro. Installs with your licence key through the @mu-pro registry; the key comes with Pro. Lands in components/mu/join-pile/ with the shared foundation.
Usage
import { JoinPile } from "@/components/mu/join-pile/JoinPile";
<JoinPile
count={128}
people={[
{ photo: "/members/ana.avif", name: "Ana", role: "Design" },
{ photo: "/members/bo.avif", name: "Bo", role: "Engineering" },
]}
/>Source
How it works
Building with an agent? Hand it a ready prompt for this piece.
Input and reduced motion
- Pointer / touch: nothing to touch: the pile is watched. The join key is yours.
- Keyboard: no stops of its own. Each arrival is read out politely ("Welcome, Jade. You’re #128."), and the count is in the title for screen readers.
- Reduced motion: a new print is on the pile at once, with no drop or settle; the count shows its new figure at once, and the welcome appears without travel.
Props
| Prop | Default | What it does |
|---|---|---|
people | [] | JoinPilePerson[], newest last | the members on the pile: photo (URL), name, and optional role, alt and id; one that was not in the last list drops in; an empty list is the empty state |
count | people.length | 0 and up | the member count; it rolls to each new value, one place at a time |
max | 4 | 1–8 | prints on the pile; the one beneath them fades as a new one lands |
loading | false | boolean | a blank print and no count while your members load (aria-busy) |
labels | English | Partial<JoinPileLabels> | title ("Members"), welcome ("Welcome, {name}.\nYou’re #{count}.", the name in bold), idle ("Who’s next?"), empty ("Be the first", on a blank print) and caption ("{name} · {role}", the ink on the print: "Ana · Design") |
sound | off | true or 0–1 | a soft pat as a print lands (see Sound) |
className | — | — | added to the root |
Sound
None. It loads in silence.
Off unless you pass sound (true, or a volume 0–1). A soft pat plays as a print lands, only when a person's press brought the member in; it never plays on hover, on mount, or for members that arrive from your data on their own. setMuted(true) from components/mu/sounds.ts silences every cottoncandy item at once.
Licence
Included with Pro: use it in unlimited end products for you and your clients; no reselling as a kit. See the licence.
New members land on a pile of instant photos, each with its own tilt, and the count rolls.
For waitlists, sign-ups and community growthMore in People & nearby