Skip to content

Support passing ref in Storybook Args #26

@ThaNarie

Description

@ThaNarie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions