1.0.2 • Published 6 years ago

box-component-example v1.0.2

Weekly downloads
6
License
ISC
Repository
-
Last release
6 years ago

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 />;
  }
  ...
}