Michael Shilman 328936fb5c Fix bad deps
2022-12-28 23:44:57 +08:00
..
2022-12-27 14:21:31 +01:00
2022-12-28 23:44:57 +08:00
2022-12-23 11:24:10 +01:00

Storybook for Preact

Requirements

Getting Started

In a project without Storybook

Follow the prompts after running this command in your Next.js project's root directory:

npx storybook@next init

More on getting started with Storybook

In a project with Storybook

This framework is designed to work with Storybook 7. If youre not already using v7, upgrade with this command:

npx storybook@next upgrade --prerelease

Manual migration

Install the framework:

yarn add --dev @storybook/preact-vite@next

Update your main.js to change the framework property:

// .storybook/main.js
module.exports = {
  // ...
  framework: {
    // name: '@storybook/react-webpack5', // Remove this
    name: '@storybook/preact-vite', // Add this
    options: {},
  },
};