@storybook/preact-vite
TypeScript icon, indicating that this package has built-in type declarations

8.0.9 • Public • Published

Storybook for Preact

Requirements

Getting Started

In a project without Storybook

Follow the prompts after running this command in your Preact project's root directory:

npx storybook@latest init

More on getting started with Storybook

In a project with Storybook

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

npx storybook@latest upgrade

Manual migration

Install the framework:

yarn add --dev @storybook/preact-vite

Update your main.js to change the framework property:

// .storybook/main.js
export default {
  // ...
  framework: {
    name: '@storybook/preact-vite', // <- Change this
    options: {},
  },
};

Readme

Keywords

Package Sidebar

Install

npm i @storybook/preact-vite

Weekly Downloads

10,083

Version

8.0.9

License

MIT

Unpacked Size

39.5 kB

Total Files

9

Last publish

Collaborators

  • domyen
  • kasperpeulen
  • valentinpalkovic
  • jreinhold
  • kylegach
  • ndelangen
  • shilman
  • tmeasday
  • ghengeveld
  • winkervsbecks
  • yannbf