Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Storybook configuration and dependencies
- Replaced `@storybook/addon-essentials` and `@storybook/addon-interactions` with `@storybook/addon-docs` in package.json and .storybook/main.ts.
- Updated import statements in Introduction.mdx to use `@storybook/addon-docs/blocks`.
- Renamed the postinstall script in package.json to `_postinstall` for compatibility.
- Updated various dependencies in package-lock.json to their latest versions, including `@auto-it` packages and Babel-related packages.
  • Loading branch information
ndelangen committed Apr 14, 2025
commit 2e3f6e3a5bfc0def829f760b906515f67f8c0e5b
12 changes: 3 additions & 9 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,10 @@ const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-docs",
"./local-preset.js",
],
framework: {
name: "@storybook/react-vite",
options: {},
},
docs: {
autodocs: "tag",
},
framework: { name: "@storybook/react-vite", options: {} },
docs: { autodocs: "tag" },
};
export default config;
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Storybook addons are listed in the [catalog](https://storybook.js.org/addons) an

To help the community use your addon and understand its capabilities, please document it thoroughly.

To get started, replace this README with the content in this sample template, modeled after how essential addons (like [Actions](https://storybook.js.org/docs/essentials/actions)) are documented. Then update the content to describe your addon.
To get started, replace this README with the content in this sample template.

### Sample documentation template

Expand All @@ -124,7 +124,7 @@ import type { StorybookConfig } from '@storybook/your-framework';
const config: StorybookConfig = {
// ...rest of config
addons: [
'@storybook/addon-essentials'
'@storybook/addon-docs'
'my-addon', // 👈 register the addon here
],
};
Expand Down Expand Up @@ -183,14 +183,14 @@ registering the addon, like so:
// .storybook/main.ts

// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)
import type { StorybookConfig } from '@storybook/your-framework';
import type { StorybookConfig } from "@storybook/your-framework";

const config: StorybookConfig = {
// ...rest of config
addons: [
'@storybook/essentials',
"@storybook/addon-docs",
{
name: 'my-addon',
name: "my-addon",
options: {
// 👈 options for my-addon go here
},
Expand All @@ -206,7 +206,6 @@ export default config;
Type: `boolean`

Enable experimental behavior to...

````

## Release Management
Expand Down
Loading