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
-
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-showcase
and from that repo callnpx @expelleboy/ink-storybook
and it should detect the.story.tsx
files 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-storybook
maintsx
(in various different import orders relative to React imports)tsx
with namespaced dynamic importsesbuild
(getting compile issues, with wasm based deps)globalThis.React
I 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