react-dashed-box
v1.0.1
Published
Dashed Box Component written in React
Downloads
11
Readme
React-dashed-box
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
| property | type | description | |-----------|---------|---------------------| | className | string | the class name | | height | number | the height of box | | width | number | the width of box | | text | string | the text of box | | onClick | func | fired when clicked |
License
MIT