Socket
Socket
Sign inDemoInstall

@storybook/preact-vite

Package Overview
Dependencies
Maintainers
26
Versions
728
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/preact-vite

Storybook for Preact and Vite: Develop Preact components in isolation with Hot Reloading.


Version published
Weekly downloads
12K
decreased by-2.11%
Maintainers
26
Weekly downloads
 
Created
Source

Storybook for Preact

Requirements

  • Preact >= 10.x
  • Storybook >= 7.x

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: {},
  },
};

Keywords

FAQs

Package last updated on 22 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc