diff options
Diffstat (limited to 'src/components/molecules/card/card-body.tsx')
| -rw-r--r-- | src/components/molecules/card/card-body.tsx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/molecules/card/card-body.tsx b/src/components/molecules/card/card-body.tsx new file mode 100644 index 0000000..40cf515 --- /dev/null +++ b/src/components/molecules/card/card-body.tsx @@ -0,0 +1,18 @@ +import type { FC, HTMLAttributes } from 'react'; +import styles from './card.module.scss'; + +export type CardBodyProps = HTMLAttributes<HTMLElement>; + +export const CardBody: FC<CardBodyProps> = ({ + children, + className = '', + ...props +}) => { + const bodyClass = `${styles.body} ${className}`; + + return ( + <div {...props} className={bodyClass}> + {children} + </div> + ); +}; |
