Inputs
Team size stepper
Team size stepper: A stepper for picking a team size where each step reveals or tucks away one avatar in an overlapping stack above the count.
Using Team size stepper
Team size stepper uses the card preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
count | number | 1 | From 1 to 6; step 1 |
label | text | Team Size | Up to 30 characters |
avatarCount | number | 4 | From 2 to 6; step 1 |
Which frameworks are available for Team size stepper?
Team size stepper is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Team size stepper depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Team size stepper?
The React source for Team size stepper includes: native elements (button); attributes and handlers (aria-disabled, aria-hidden, aria-label); explicit roles (group). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Team size stepper handle reduced motion?
Team size stepper reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: avatarSpring: reduce ? { duration: 0.01 } : { type: "spring", stiffness: 430, damping: 26 }; numTween: reduce ? { duration: 0.01 } : { duration: 0.19, ease: "easeOut" }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.