prev-cli 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +14 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1000,7 +1000,21 @@ Previews:
1000
1000
 
1001
1001
  Then embed in MDX:
1002
1002
  import { Preview } from '@prev/theme'
1003
+
1003
1004
  <Preview src="my-demo" />
1005
+ <Preview src="my-demo" height={600} />
1006
+ <Preview src="my-demo" title="Counter Demo" />
1007
+
1008
+ Preview props:
1009
+ src Required. Name of the preview folder
1010
+ height Iframe height in pixels (default: 400)
1011
+ title Display title (default: folder name)
1012
+
1013
+ DevTools (floating pill in preview):
1014
+ - Device modes: mobile (375px), tablet (768px), desktop
1015
+ - Custom width slider (320-1920px)
1016
+ - Dark mode toggle
1017
+ - Fullscreen mode
1004
1018
 
1005
1019
  Previews are bundled via esbuild-wasm in dev, and pre-compiled
1006
1020
  to standalone HTML files in production builds.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prev-cli",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "Transform MDX directories into beautiful documentation websites",
5
5
  "type": "module",
6
6
  "license": "MIT",