tajo / ladle

🥄 Develop, test and document your React story components faster.
https://www.ladle.dev
MIT License
2.63k stars 93 forks source link

Embeddable Isolated Story #566

Closed ArrayKnight closed 4 months ago

ArrayKnight commented 4 months ago

Is your feature request related to a problem? Please describe. I'd like to request the isolated embed feature that Storybook provides: https://storybook.js.org/docs/sharing/embed

This provides the ability to strip away the wrapping UI and present a isolated component story which can be embedded in

Describe the solution you'd like Replication of the Storybook feature set, specifically: https://storybook.js.org/docs/sharing/embed#embed-a-story-without-the-toolbar where viewMode=story is set as a URL param.

This would hide the separator (resizer), aside (nav & search), and header/footer (addons)

image

Describe alternatives you've considered I could create my own decorator that looks at the URL for a specific param and then apply styles to hide Ladle UI, but this feels like a feature set that others are going to want and should be built into Ladle

ArrayKnight commented 4 months ago

I'm sorry, I somehow completely missed the fact that there's already a fullscreen mode that accomplishes this