react-demo-tab-cli

CLI tool for creating demos of React components


Keywords
react, react-component, demo-component, demo, react-demo-tab-cli, demo-tab-cli, demotab, demo-tab, cli, cli-tool, documentation, documentation-tool, oclif, code-generator, code-example
License
MIT
Install
npm install react-demo-tab-cli@1.2.48

Documentation

DemoZap âš¡

npm version CI semantic-release TypeScript

Easily create demos of React components

Maintaining example code and demo separately makes it painful, it's easy to get them out of sync 🙅

Code can't lie, documentation can 💥

DemoZap CLI keeps your code up to date with demo 💪

Usage

  • Name component files as [component_name].demozap.jsx
  • Run npx demozap generate

Use created demos 🎉

Install

React

npm install -D react-demo-tab

Generated Demos

  • Generated demo files are prefixed with _:
    MyComponent.demozap.jsx → _MyComponent.jsx
  • or set custom prefix:
    npx demozap generate --prefix=CustomPrefix

Built with DemoZap

Manually create demos

To manually create demos instead via CLI use DemoTab component.

Contributing

All contributions are welcome!