Replies: 1 comment
|
We started a StepList component a while back. You can find the source here We haven't had the time or priority to finish it up. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I recently vibe-coded a prototype to explore the use cases we have at my company (checkout/wizard flows, setup checklists, compact inline progress in tables/lists, async transitions, server validation errors, etc.).
I’m sharing it here purely as input for discussion. Happy for the team to take, ignore, or reshape any of the ideas.
Goals the prototype tried to cover
<StepList>+<Item key=…>), with controlled/uncontrolledselectedKey+onSelectionChange.aria-current="step".aria-disabled) — you can’t skip ahead by clicking, only via Back/Next or programmaticonSelectionChange.isReadOnlyturns the whole thing into a pure progress indicator (no navigation).type="inline"variant meant to sit inside list rows / table cells (dots only; labels live intitle+ screen-reader text).validationErrors).StepListPanelwrapper that wires the same selection state to Back / Next buttons.API sketch (high level)
Completed steps are focusable/clickable; the current step is announced via
aria-current="step"; future steps are not interactive. Status prefixes (“Completed:”, “Not completed:”, “Loading:”, “Error:”) are visually hidden and only spoken by AT. Focused links get a live region so status changes under the cursor are announced.Demo / code
The full prototype is available if useful: stackblitz
Thanks for the work you do on React Aria. Looking forward to whatever the official component ends up looking like — and if any of these use cases are helpful while you’re shaping the API, even better.
Also the react-ui-roundup has a lot of other examples of Steppers that might be interesting or useful points of reference to you while you're developing it.
All reactions