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 · May be fixed by #18309
Open

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

guidari opened this issue Dec 17, 2024 · 0 comments · May be fixed by #18309
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.

@guidari guidari added role: dev 🤖 type: infrastructure 🤖 Issues relating to devops, tech debt, etc. labels Dec 17, 2024
@guidari guidari self-assigned this Dec 17, 2024
@guidari guidari moved this to ⏱ Backlog in Design System Dec 17, 2024
@guidari guidari linked a pull request Jan 8, 2025 that will close this issue
@guidari guidari moved this from ⏱ Backlog to 🚦 In Review in Design System Jan 8, 2025
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: 🚦 In Review
Development

Successfully merging a pull request may close this issue.

1 participant