🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@storybook/preact-vite

Package Overview
Dependencies
Maintainers
12
Versions
1572
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.

Source
npmnpm
Version
0.0.0-pr-30371-sha-ebe7f62f
Version published
Weekly downloads
25K
-19.31%
Maintainers
12
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

storybook

FAQs

Package last updated on 24 Jan 2025

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