Skip to content

Commit

Permalink
Merge pull request #22 from rangle/feat/product-card
Browse files Browse the repository at this point in the history
feat(storybook): update Storybook configuration to include additional…
  • Loading branch information
stephanie56 authored Dec 5, 2024
2 parents 4a418bb + ce12bfd commit 5d56431
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions apps/demo/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, "package.json")));
}
const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)",
resolve(__dirname, "../../../packages/ui/components/**/*.stories.ts")
stories: [
"../src/**/*.mdx",
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)",
resolve(__dirname, "../../../packages/ui/components/**/*.stories.ts"),
resolve(__dirname, "../../../packages/ui/components/**/*.stories.tsx"),
],
addons: [
getAbsolutePath("@storybook/addon-onboarding"),
Expand Down
3 changes: 2 additions & 1 deletion apps/demo/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const preview: Preview = {
toolbar: {
title: "Brands",
icon: "paintbrush",
items: ["brand-1"],
defaultValue: "brand-1",
items: ["brand-1", "hot-brand"],
dynamicTitle: true,
},
},
Expand Down

0 comments on commit 5d56431

Please sign in to comment.