17 lines
328 B
TypeScript
17 lines
328 B
TypeScript
|
import styles from "./card.module.css"
|
||
|
|
||
|
export default function Card({
|
||
|
children,
|
||
|
className,
|
||
|
...props
|
||
|
}: {
|
||
|
children: React.ReactNode
|
||
|
className?: string
|
||
|
} & React.ComponentProps<"div">) {
|
||
|
return (
|
||
|
<div className={`${styles.card} ${className}`} {...props}>
|
||
|
<div className={styles.content}>{children}</div>
|
||
|
</div>
|
||
|
)
|
||
|
}
|