Skip to main content
The Deno 2 Release Candidate is here
Learn more

previs

Code generation toolkit for frontend components.

Install

$ deno install -Af https://deno.land/x/previs@v0.0.2/previs.ts

How to use

Put file for preview.

// src/components/Button.tsx
export default function Button() {
  const buttonStqsyle = {
    backgroundColor: 'red',
    color: 'white',
  };
  return <button type="button" style={buttonStyle}>Click me</button>
}
# setup vite project
$ previs -p 3001 src/components/Button.tsx
[previs] start http://localhost:3001/

TODO

  • documentation
  • react
  • svelte
  • vue
  • library detection

LICENSE

MIT