Skip to content

React component to make documenting easier and much simpler.

Notifications You must be signed in to change notification settings

damianprzygodzki/react-atomic-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

React component to make documenting easier and much simpler.

Resources

Stars

Watchers

Forks

Packages

No packages published