Skip to content

Commit

Permalink
docs: add playground addon for vibe's storybook (#1837)
Browse files Browse the repository at this point in the history
Co-authored-by: Tal Koren <talko@monday.com>
  • Loading branch information
YossiSaadi and talkor authored Dec 20, 2023
1 parent a657562 commit 846a8f1
Show file tree
Hide file tree
Showing 5 changed files with 1,627 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const getAddons = () => {
{
name: "@storybook/addon-styling-webpack",
options: storybookAddonStylingWebpackOptions
}
},
"storybook-addon-playground"
];

if (process.env.NODE_ENV !== "production") {
Expand Down
6 changes: 6 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from "react";
import * as VibeComponents from "../src/components/index";
import * as VibeIcons from "../src/components/Icon/Icons/index";
import { Preview } from "@storybook/react";
import isChromatic from "chromatic/isChromatic";
import { DocsContainer, DocsPage, Unstyled } from "@storybook/blocks";
Expand Down Expand Up @@ -93,6 +95,10 @@ const preview: Preview = {
"Hooks"
]
}
},
playground: {
playgroundStoryId: "playground",
components: { ...VibeComponents, VibeIcons }
}
},
decorators: [
Expand Down
Loading

0 comments on commit 846a8f1

Please sign in to comment.