[Feature Request] Documentation: Remove the "show more" button in the component's code example sections #3242
Labels
📋 Scope : Docs
Related to the documentation
✨ Type: Enhancement
New enhancement on existing codebase
Is your feature request related to a problem? Please describe.
As I am starting a new project and use NextUI for the first time, I use the documentation extensively and want to navigate fast to code examples. Right now, each code example is 2 clicks away, first switching tabs from "preview" to "code". Then there appears an uninformative and none interactive code excerpt with only the imports readable and the rest faded out, with a "show more" button. Only after clicking this, I can see useful examples of the component usage.
Is there a rational behind this extra two-step interaction to access the examples? Is it to prevent bots scraping the code?
Describe the solution you'd like
Could we consider removing this extra "show more" button? It would much improve the usability of the documentation in my opinion.
Describe alternatives you've considered
Documentation at mui.org sometimes shows relevant short code examples for components directly under the preview panes, with the option to open extended code listings with one click.
Documentation at tailwindui.com also shows full code examples directly after switching tabs between "preview" and "code".
Screenshots or Videos
No response
The text was updated successfully, but these errors were encountered: