diff options
Diffstat (limited to 'src/react/ModalTitle.js')
-rw-r--r-- | src/react/ModalTitle.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/react/ModalTitle.js b/src/react/ModalTitle.js new file mode 100644 index 0000000..b48cc8a --- /dev/null +++ b/src/react/ModalTitle.js @@ -0,0 +1,19 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +const Title = ({children, className}) => ( + <div className={`title ${className}`} > + {children} + </div> +); + +Title.PropTypes = { + children: PropTypes.node, + className: PropTypes.string +}; + +Title.defaultProps = { + className: '' +}; + +export default Title;
\ No newline at end of file |