clean css
This commit is contained in:
15
resources/js/components/Card.tsx
Normal file
15
resources/js/components/Card.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import React, {FC} from "react";
|
||||
import {PropsWithChildren} from "react";
|
||||
|
||||
const Card: FC<PropsWithChildren<CardProps>> = ({children, className = ''}) => {
|
||||
|
||||
return <div className={`${className} border m-1 rounded py-1 px-2`}>
|
||||
{children}
|
||||
</div>
|
||||
}
|
||||
|
||||
export default Card
|
||||
|
||||
interface CardProps {
|
||||
className?: string
|
||||
}
|
||||
Reference in New Issue
Block a user