1.0.3 • Published 6 years ago

title-component-example v1.0.3

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

Production

Usage

  <TitleComponent text='MyTitle' style={{
    color: 'black',
    backgroundColor: 'white',
    height: '20px',
  }}>

Props

  text: PropTypes.string.isRequired,
  style: PropTypes.shape({
    color: PropTypes.string,
    backgroundColor: PropTypes.string,
    height: PropTypes.string,
  }),

  // default
  style: {
    color: 'black',
    backgroundColor: 'white',
    height: '20px',
  },