on d760cbf help sign in
23 lines 416 B history raw
1import React from 'react';
2import PropTypes from 'prop-types';
4const H2 = ({ className, children, style }) => {
5 return (
6 <h2 className={`mt-8 pt-3 mb-4 measure-md ${className}`} style={style}>
7 {children}
8 </h2>
9 );
10};
12H2.propTypes = {
13 className: PropTypes.string,
14 children: PropTypes.node,
15 style: PropTypes.object,
16};
18H2.defaultProps = {
19 className: '',
20 style: {},
21};
23export default H2;