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
Added an external-docs
example to show the basic use case
#17807
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 416bd4d. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmeasday looking really great except for the version issues
|
Demo of an
external-docs
app w/ a refactored preview (not containing "render to screen") parts.To try it:
Run
yarn start
in theexternal-docs
example to see an example of an CRA app that uses doc blocks w/o a full storybook runtime or any kind of build.Run
window.preview.onUpdateArgs({ storyId: 'examples-button--export-0', updatedArgs: {label :'changed' }})
to see an example of a message reaching the preview to update the args (you can usewindow.preview.channel
too).Of note:
blocks.tsx
file only depends onPreview
(currently exported by@storybook/preview-web
but we may move it to its own package) which doesn't attempt to render the "current story" and has no dependencies on docs (thus react).