mirror of https://github.com/MaxLeiter/Drift
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
|
|
)
|
|
}
|