16 lines
329 B
TypeScript
16 lines
329 B
TypeScript
import React, {FC} from "react"
|
|
import {PropsWithChildren} from "react"
|
|
|
|
const Card: FC<PropsWithChildren<CardProps>> = ({children, className = ''}) => {
|
|
|
|
return <div className={`${className} m-1 rounded border px-2 py-1`}>
|
|
{children}
|
|
</div>
|
|
}
|
|
|
|
export default Card
|
|
|
|
interface CardProps {
|
|
className?: string
|
|
}
|