-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stepper component #224
Comments
So it would be a component similar to the Tabs with a React/MDX API? Why not, but I'd like to understand better the motivations of the user to request this component in Infima + core, considering it can be implemented quite easily in userland It would be nice to have a userland implementation first to see it in action in production on a real case before adding this as a first-class feature. |
Most likely, yes, we would implement the styles in Infima and provide a convenient way to write it in React. The motivation is to achieve consistent styling. We had numerous past requests for form elements which are probably out of scope, but since this one is static, I think it's okay. |
Thanks guys! Here's the motivation for this kind of component: when working on a step-by-step tutorial that's made of a larger number of screenshots, and very little text content (for example, like here: https://petrbroz.github.io/forge-samples-docs/docs/intro/#create-app-credentials), having some sort of a stepper component might provide a better UX than scrolling through a potentially really long page. |
This is a bit vague to me. Which stepper UX do you want to have exactly? Can you show any production example similar to your desired outcome? (ie including one large screenshot + text per step) What prevents you from building this right now as a custom React component? I'm not against such component but it's opinionated and I never saw it on any Docusaurus site so far So if we build it for the need of user1, and then later user2 come up with another stepper need with different UX/UI opinions, it's bad. What I would do:
|
It's, well, chicken and egg. Users don't bother making it because using a numbered list or several paragraphs work just as fine. But if we can make one, surely we'll see adoption. I frankly think it's a very nice doc practice, similar to tabs or details, that enables rich navigation/organization.
Docusaurus is opinionated; even more opinionated is Infima, which is all about providing useful OOTB layouts for common components. Given that MUI and Zendesk both have such a component with similar UI/UX, I don't think it would be too hard to make. Docusaurus is ultimately content-driven. Most users are only expecting something that "works", and the more convenient it is, the better. Not everyone is Supabase making their branded sites with Docusaurus. |
I don't have any specific requirement for the UX. Just a single area where the user can jump through multiple steps of a specific process, with the steps themselves being visualized either horizontally (example 1, example 2), or vertically (example 1, example 2).
Other than not being as experienced with React development, probably nothing. I will most likely try and implement something like this myself but wanted to introduce the idea on Canny to see if others would be interested in this type of component as well. |
Do we have great examples of documentation with a stepper component? Do they solve @petrbroz use-case?
Those UI libs are generally quite bloated
It's not a matter of difficulty to implement but rather to decide if it should be part of Docusaurus API surface. I understand that if it's provided then users will use it, and we try to make it convenient. But is this a pattern we want to encourage? Is this a good documentation practice? I really don't know, I'd like to see some research being done before implementing this. If we can't find it on any Docusaurus site, maybe other docs sites have steppers? Also, have some technical concerns regarding the ability to support accessibility and progressive enhancement for this UX |
A11y is likely not a problem, but progressive enhancement could be 🤔 |
Apparently this is too specific component, in Infima implemented components that are more or less often will be used in the reality. I can't even find a use for this component in the built-in components of Docusaurus. So personally I wanted to keep Infima as minimalist and small in size as possible as it is now. |
Requested on Canny: https://docusaurus.canny.io/feature-requests/p/stepper-component
I think that makes sense
The text was updated successfully, but these errors were encountered: