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!