Skip to content

Commit

Permalink
chore: add in sandbox support for storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnewton committed Nov 7, 2024
1 parent 81d2677 commit 51a463e
Show file tree
Hide file tree
Showing 4 changed files with 3,775 additions and 598 deletions.
1 change: 1 addition & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const config: StorybookConfig = {
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-links",
"@codesandbox/storybook-addon",
"@chromatic-com/storybook",
"@whitespace/storybook-addon-html",
],
Expand Down
5 changes: 5 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ const preview: Preview = {
// layout: "centered",
loaders: [mswLoader],
parameters: {
codesandbox: {
apiToken: process.env.CODE_SANDBOX_API_TOKEN,
template: "react",
privacy: "public",
},
controls: {
matchers: {
color: /(background|color)$/i,
Expand Down
Loading

0 comments on commit 51a463e

Please sign in to comment.