box-component-example
v1.0.2
Published
### Usage Function that displays a section box with title, and colors specified.
Downloads
6
Readme
Production
Usage
Function that displays a section box with title, and colors specified.
Form
Box(title, color, backgroundColor) : component
- title: Shown title
- color: Font color
- backgorundColor: Background color of the box
Example
import Box from 'box-component-example';
class MyComponent extends React.Component {
...
render(){
const MyBox1 = Box('My Title', '#FF00FF', 'red');
return <MyBox />;
}
...
}