react-atomic-wrapper

1.1.0 • Public • Published

react-atomic-wrapper

React component to make documenting process simpler.

Usage

Installation:

npm install --save react-atomic-wrapper

This package will install only one dependency - react-element-to-jsx-string - amazing parser to print syntax for your components.

Then in your UI document:

const AtomicWrapper = require('../AtomicWrapper');
 
<AtomicWrapper
    wrapperTitle="Components header"
>
    <YourComponentHere
        with={}
        all={}
        of={}
        properties={}
    />
    ...
</AtomicWrapper>

Component has built in styles to set position of elements. But if you want to style it there are provided CSS classes for each element.

Purpose

It is brilliant to have a documentation with example usage in projects when there are large amount of components. To confront them, to adjust design details, to share reusable parts for other members and finally to expose all of the properties.

Example

If you are interested in see react-atomic-wrapper in action check the example folder.

You should clone project and install dev dependencies too:

npm install

And run server in example directory:

cd example
webpack-dev-server

Package Sidebar

Install

npm i react-atomic-wrapper

Weekly Downloads

0

Version

1.1.0

License

ISC

Last publish

Collaborators

  • dprzygodzki