1.0.3 • Published 6 years ago
title-component-example v1.0.3
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',
},