LogoPreview.js
Star
GuideAboutBlog
Getting started
Setup guides
React & Preact
Next.js
Vue.js
Nuxt.js
Solid
Svelte
Tailwind
Platforms
Visual Studio Code
IntelliJ / WebStorm
Command-line interface
Configuration
CSS
Wrapping components
Static Assets
Custom Aliases
SVGR support (React only)
React Native
Features
Autogenerated props
Instant refresh
Storybook
Viewport preview
Pro
Dark background toggle
Pro
Component switcher
Pro
Component search
Pro
Activating Preview.js Pro
FAQ

Command-line interface

Installing

Install Preview.js CLI:

# pnpm
$ pnpm add -D @previewjs/cli

# npm
$ npm install --dev @previewjs/cli

# Yarn
$ yarn add -D @previewjs/cli

You can then run previewjs in your project directory and pick any component to preview!

« IntelliJ / WebStormConfiguration »
GitHubDiscord Twitter Privacy
Copyright © 2021 Zenc Labs Pty Ltd