Skip to content

How to use with Storybook? #175

@jdahdah

Description

@jdahdah

Does anyone by chance have a working example of how to use this with Storybook? Some of my components use <FormattedMessage /> and <Link /> from gatsby-plugin-intl, and I'm not sure how to get those working within the Storybook context.

I tried adding context providers like <IntlProvider /> and <IntlContextProvider /> to a story, but they rely on pageContext, which is not available outside of the gatsby runtime environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions