Storybook for Ink (React for the Terminal) #30853
Unanswered
expelledboy
asked this question in
Show and tell
Replies: 1 comment
-
|
@ndelangen I think you have substantial experience to make ink work in Storybook. Maybe you have one or two helpful tips. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello 👋
I am attempting to get a MVP storybook like experience for developing components using the ink framework.
I thought I had something working, but it would seem I just had a temporary state, where my calling repo somehow imported modules using the same react instance.
However, now I am getting
Ideally I would like to be able to develop a story in my component repo, eg
ink-showcaseand from that repo callnpx @expelleboy/ink-storybookand it should detect the.story.tsxfiles for the components, and then render that into the storybook app UI component that exists in@expelleboy/ink-storybook.For the life of me I can not rap my head around what I must do to get this to work. I have tried:
ink-storybookmaintsx(in various different import orders relative to React imports)tsxwith namespaced dynamic importsesbuild(getting compile issues, with wasm based deps)globalThis.ReactI have worked an entire weekend (and then some) and I have finally given up.
If anyone could provide me some insight I would very much appreciate it!
Here is the repo: https://github.com/expelledboy/ink-storybook
Beta Was this translation helpful? Give feedback.
All reactions