You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Paragraph.jsx 368B

123456789101112131415
  1. import React from 'react'
  2. import PropTypes from 'prop-types';
  3. const Paragraph = (props) => {
  4. return (
  5. <p className={"paragraph pb-8p" + (props.textCenter ? " text-center" : '') + (props.textRight ? " text-end" : '')}>{props.children}</p>
  6. )
  7. }
  8. Paragraph.propTypes = {
  9. textRight: PropTypes.bool,
  10. textCenter:PropTypes.bool,
  11. };
  12. export default Paragraph;