1.0.1 • Published 8 years ago

react-dashed-box v1.0.1

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

React-dashed-box

react-dashed-box logo

Dashed Box Component written in React.

Installation

$ npm install react-dashed-box --save

Usage

import DashedBox from 'react-dashed-box';

class ExampleApp extends React.Component {
  render() {
    return <DashedBox height={100} width={100} text="click to add" />
  }
}

Properties

propertytypedescription
classNamestringthe class name
heightnumberthe height of box
widthnumberthe width of box
textstringthe text of box
onClickfuncfired when clicked

License

MIT