1.0.2 • Published 4 years ago

react-shadowbox v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

react-shadowbox

Display your React Components in scenarios

NPM JavaScript Style Guide

Install

npm install --save react-shadowbox

Usage

import React, { Component } from 'react'

import ShadowBox from 'react-shadowbox'

const original = <button>Hello World</button>;

class Example extends Component {
  render () {
    return (
      <ShadowBox original={original}>
        {({ withRandomText }) => {
          return (
            <React.Fragment>
              {original}
              {withRandomText}
            </React.Fragment>
          );
        }}
      </ShadowBox>
    )
  }
}

License

MIT © rkhayat

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago