Preview UI components in your IDE instantly
Preview.js is a tool that allows you to preview React, Preact, Solid, Svelte, Vue components, and Storybook stories instantly in your IDE or in your browser via the CLI. It is available for popular IDEs such as Visual Studio Code and IntelliJ/WebStorm.
To install Preview.js, you can follow these steps:
For Visual Studio Code: Install the Preview.js extension from the Visual Studio Code marketplace.
For IntelliJ / WebStorm: Install the Preview.js plugin from the IDE’s plugin repository.
CLI: Use npm or yarn to install the Preview.js package globally:
npm install -g @preview-js/cli
or
yarn global add @preview-js/cli
Preview.js is a versatile tool that simplifies the preview process for developers working with various JavaScript frameworks. Its support for multiple frameworks, instant previews, and availability in popular IDEs make it a valuable addition to the development workflow.