-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[docs] Make source code snippet editable #26476
Comments
@eps1lon Thank you. You can close this issue then |
Since it's unlikely that @mbrookes finishes the effort in #24640. I'm reopening to have a reference issue about the different directions that we are exploring. I have updated the issue with the initial benchmark we have done. It seems that I can replace this note in the roadmap project with this issue: @hetanthakkar1 You are linking Elastic UI as a reference, but I can't find anything specific about this issue there. Could you describe a bit more how it's relevant? Thanks |
@oliviertassinari Can you please visit this link and enable the playground switch https://elastic.github.io/eui/#/navigation/button |
@hetanthakkar1 Ok thanks, it's a lot clearer. We do plan to solve the exact pain point that you have described:
So basically, being able to quickly try things out. But we don't intend to solve it with a "playground" as ElasticUI has done. I would argue that it's way too restrictive. ElasticUI only support it on a subject of the components, and you are very limited, no composition possible for instance. |
@arpitBhalla Feel free to continue the effort started in #24640, cc @mbrookes. |
@arpitBhalla Happy to see this continued. Let me know if you need any help picking it up, but the PR description and review are a good starting point as to the current state of the code; as is the netlify preview link, where you can try it out. |
@oliviertassinari should we close this issue as resolved now? |
Summary 💡
It would be a great feature to implement a playground where you can tweak the code for the components(more specifically the props) and see the desired output on the website. I have worked on a similar kind of project in the past and I would be more than happy to work on this feature. I have researched the implementation detail for this feature and I am ready to finish this functionality (if permitted) by the end. I know this is not a simple feature but I am idle for few months and I can contribute significant time to this feature. @arpitBhalla @nancy2681 can also help me in this project. I do feel that this would be a great feature as fluent UI is not just used by Microsoft apps but also in other projects
Examples 🌈
Example: https://elastic.github.io/eui/#/
Motivation
The objective is to makes it easier for the developers to learn the API, not only by reading the props and their description but by using it. If you doubt it, try building your next project with Chakra. Pay attention to when you use the live demo edit to learn the API, how you feel about it, and how quickly you can POC things out.
The alternatives are:
Benchmark
The text was updated successfully, but these errors were encountered: