Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@storybook/preact-vite

Package Overview
Dependencies
Maintainers
11
Versions
793
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.

  • 0.0.0-pr-29482-sha-5d433a45
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.4K
decreased by-56.54%
Maintainers
11
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 30 Oct 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