Socket
Socket
Sign inDemoInstall

@storybook/preact-vite

Package Overview
Dependencies
462
Maintainers
0
Versions
593
Alerts
File Explorer

Advanced tools

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
11K
increased by18.42%
Maintainers
0
Created
Weekly downloads
 

Changelog

Source

8.1.11

  • Telemetry: Detect Node version - #28299, thanks @yannbf!
  • Test: Upgrade deps of @storybook/test - #27862, thanks @kasperpeulen!

Readme

Source

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

Keywords

FAQs

Last updated on 27 Jun 2024

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc