aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/card/card-body.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/molecules/card/card-body.tsx')
-rw-r--r--src/components/molecules/card/card-body.tsx18
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>
+ );
+};