Skip to content

Commit

Permalink
feat: first story with a simple component and directory structure wit…
Browse files Browse the repository at this point in the history
…h readmes
  • Loading branch information
jared-dickman authored and brewdente committed Dec 12, 2023
1 parent f1fbfbf commit a60b9b8
Show file tree
Hide file tree
Showing 13 changed files with 13,918 additions and 0 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.16.0
26 changes: 26 additions & 0 deletions .storybook/main.ts
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
14 changes: 14 additions & 0 deletions .storybook/preview.js
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 added examples/readme.md
Empty file.
Loading

0 comments on commit a60b9b8

Please sign in to comment.