diff --git a/src/components/Card/Card.tsx b/src/components/Card/Card.tsx index 36ee1b2..b780901 100644 --- a/src/components/Card/Card.tsx +++ b/src/components/Card/Card.tsx @@ -1,4 +1,4 @@ -import { ReactNode } from 'react'; +import { ComponentPropsWithoutRef } from 'react'; import clsx from 'clsx'; import { ElementElevation } from '../../types'; @@ -6,9 +6,7 @@ import { getStyleClassNames } from '../../utils/getStyleClassNames'; import styles from './Card.module.scss'; -export interface CardProps { - children: ReactNode; - className?: string; +export interface CardProps extends ComponentPropsWithoutRef<'div'> { disablePadding?: boolean; elevation?: ElementElevation; } @@ -18,8 +16,10 @@ export const Card = ({ className, disablePadding = false, elevation = 1, + ...props }: CardProps): JSX.Element => (