Skip to content

sagarpanda/react-component-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Component Preview

Click here to see the demo.

NPM Installation

$ npm install react-component-preview

Use

import Preview from 'react-component-preview';
<Preview
  components={this.components}
  code='<Button bsStyle="primary">Primary</Button>'
/>

Props

Name Type Default Description
code string
components object
previewStyle object { minHeight: 200 }
enableEditor Boolean true Show and hide the editor

Source Code Run

Install the dependencies and devDependencies and start the server.

$ git clone git@github.com:sagarpanda/react-component-preview.git
$ cd react-component-preview
$ npm install
$ npm start

Todos

  • Update soon...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published