Progress Steps API RFC #3207
Closed
nkrantz
announced in
Review request
Replies: 3 comments 3 replies
-
Didn't notice until now—why are numbers in steps and error status out of scope? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Would/could we require either a href or onClick for each step? I'm trying to work through the design implications of this, but curious if there's an eng opinion here. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Would we be able to implement something like this with this new component? Screen.Recording.2023-05-18.at.9.13.18.AM.mov |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Progress Indicator - request for comment
We're adding a Progress Indicator (PI) to the Paste component library and we'd like your input.
Progress Indicators are sometimes called Steppers or Progress Steppers, and are used to indicate a user's progress throughout a multi-step flow. Drop feedback about the naming of this component in the thread.
Please review the following API proposal and scope decisions and let us know what you think.
Note: the designs included in this RFC are purely exploratory and we're not currently looking for design feedback. The design work for PI will happen after the scope and API are finalized and we'll request design feedback at that time.
Scope
In scope for the first release of the Progress Indicator:
Out of scope for the first release of the Progress Indicator:
Components
orientation?
(string)“horizontal”
|“vertical”
determines visual orientation of PIsequential?
(boolean) sequential PIs must be completed in order (can't jump forwards past incomplete steps)i18nCompletedLabel
(string) label to communicate that the step is completedi18nCurrentLabel
(string) label to communicate that the step is currenti18nIncompleteLabel
(string) label to communicate that the step is incompletestatus
(string)"complete"
|"current"
|"incomplete"
href?
(string) for clickable steps that lead to new URLs - sets an <a> inside of the <li>onClick?
(function) for clickable steps that update the DOM (don't lead to new URLs) - sets a <button> inside of the <li>disabled?
(boolean) for clickable steps that can't currently be clicked (e.g. depends on another step)API
Take a look at the above API in a CodeSandbox
Beta Was this translation helpful? Give feedback.
All reactions