Skip to content
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

Support passing ref in Storybook Args #26

Open
ThaNarie opened this issue Apr 14, 2023 · 0 comments
Open

Support passing ref in Storybook Args #26

ThaNarie opened this issue Apr 14, 2023 · 0 comments

Comments

@ThaNarie
Copy link
Contributor

Muban templates in TypeScript accept a ref as a 2nd parameter.
Twig templates accept everything as "data", including the ref.

If we render a story component that has a decorator, where the decorator wants to access the rendered story component, it could be useful to provide a ref to it.

If, when rendering the story, we look to see if there is a ref arg, we could pass it to the 2nd parameter of the TS template.

With that, it would work the same for TS and Twig templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant