@react-ui-org/react-ui
Version:
React UI is a themeable UI library for React apps.
29 lines (24 loc) • 615 B
JSX
import PropTypes from 'prop-types';
import React from 'react';
import { withGlobalProps } from '../../providers/globalProps';
import { transferProps } from '../../helpers/transferProps';
import styles from './Card.module.scss';
export const CardBody = ({
children,
...restProps
}) => (
<div
{...transferProps(restProps)}
className={styles.body}
>
{children}
</div>
);
CardBody.propTypes = {
/**
* Content of the card.
*/
children: PropTypes.node.isRequired,
};
export const CardBodyWithGlobalProps = withGlobalProps(CardBody, 'CardBody');
export default CardBodyWithGlobalProps;