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

Create "Open in Stackblitz" option in Storybook Canvas #18257

Open
guidari opened this issue Dec 17, 2024 · 0 comments
Open

Create "Open in Stackblitz" option in Storybook Canvas #18257

guidari opened this issue Dec 17, 2024 · 0 comments
Assignees
Labels
role: dev 🤖 type: infrastructure 🤖 Issues relating to devops, tech debt, etc.

Comments

@guidari
Copy link
Contributor

guidari commented Dec 17, 2024

After this PR is merged we can start adding the "Option in Storybook" to a few stories.

We just have to add the prop additionalActions to Canvas.

<Canvas
  of={ButtonStories.IconButton}
  additionalActions={[
    {
      title: 'Open in Stackblitz',
      onClick: () => stackblitzPrefillConfig(ButtonStories.IconButton),
    },
  ]}
/>

Not all stories will have this option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
role: dev 🤖 type: infrastructure 🤖 Issues relating to devops, tech debt, etc.
Projects
Status: ⏱ Backlog
Development

No branches or pull requests

1 participant