-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: first story with a simple component and directory structure wit…
…h readmes
- Loading branch information
1 parent
f1fbfbf
commit a60b9b8
Showing
13 changed files
with
13,918 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v18.16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite) | ||
import type { StorybookConfig } from "@storybook/react-vite" | ||
|
||
const config: StorybookConfig = { | ||
framework: "@storybook/react-vite", | ||
|
||
stories: [ | ||
"../src/stories/**/*.mdx", | ||
"../src/stories/**/*.stories.@(js|jsx|mjs|ts|tsx)", | ||
], | ||
|
||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions", | ||
], | ||
|
||
docs: { | ||
autodocs: "tag", | ||
}, | ||
|
||
// staticDirs: ["../public"], | ||
|
||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** @type { import('@storybook/react').Preview } */ | ||
const preview = { | ||
parameters: { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/i, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
export default preview |
Empty file.
Oops, something went wrong.