react-doc-tab

Generate documentation tabs from React components

test package
Last updated 4 months ago by marko424 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-doc-tab 
SYNC missed versions from official npm registry.

React DocTab ????

npm version build status oclif prettier

Generate React component as Live Demo & Code Example

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

Code can't lie, example code can ????

DocTab keeps your example code up to date with live demo ????

Install

npm install -D react-doc-tab react-doc-tab-template

Demo

DocTab live demo

Usage

To use DocTab in your project:

  • default export component
  • name file as [filename].doctab.[ext]
  • run $ npx doctab generate

Import generated DocTab components. ????

Generated DocTab Files

  • By default generated files will be prefixed with _ for example:
    MyComponent.doctab.jsx & MyComponent.doctab.css -> _MyComponent.jsx
  • You can set custom prefix with --prefix flag:
    $ doctab generate --prefix=CustomPrefix

Built with DocTab

License

MIT

Current Tags

  • 1.0.25                                ...           latest (4 months ago)

4 Versions

  • 1.0.25 [deprecated]           ...           4 months ago
  • 1.0.24 [deprecated]           ...           4 months ago
  • 1.0.23 [deprecated]           ...           4 months ago
  • 1.0.22 [deprecated]           ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 0
Last Month 4
Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |