-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Framework support (Omi) #4591
Comments
Hey @tonai
Probably it can't.
I am not sure I got what do you mean. Are you talking about adding the |
Hi @igor-dv, Sorry I was not clear enough (it was quite late friday 😴 ).
In fact, I think this is the default choice. I haven't looked at the code of the core yet, so I'm just questionning here if there is a more generic way of adding a story than using the Because; maintaining all those versions of storybook must be quite hard. And maybe adding Omi support is not worth it, because not a lot of people will use it... So I don't know if adding the Omi framework support is a good choice. Thanks, |
What versions 🤔 |
I'm talking about maintaining all storybook variant:
I don't think it will be really hard to create the |
Most of the common code is located in |
Is your feature request related to a problem? Please describe.
I'm trying to make the storybook work with the Omi framework : https://github.com/Tencent/omi
Describe the solution you'd like
I'd like a way to create a story by using my own rendering method.
To clarify and by taking the example of React; instead of returning a React element in the story:
I would to write something like this:
(maybe it can be an other mathods than
add
)Describe alternatives you've considered
As the Omi framework generates web component I tried the @storybook/html package.
And It works:
But the Omi framework has a built-in store that you bind to your app by calling the render method:
The store does not only contains data, it also contains methods that you can't pass by using the web component notation.
Are you able to assist bring the feature to reality?
Maybe we can create a wrapper like for react, angular...etc.
But as JS Framework are always growing and changing, is it really the right choice ?
I'am wondering if lower level methods exist that allow you to create your own wrapper.
Is it possible to have that kind of generic approach ?
The text was updated successfully, but these errors were encountered: