Files
Frontend/src/app/components/card.tsx
Liam 428a95c54d
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m4s
cleanup and docs
2024-04-18 07:06:16 +01:00

19 lines
407 B
TypeScript

import { cn } from "@/common/utils";
import { ReactElement } from "react";
type CardProps = {
/**
* The children for this element.
*/
children: React.ReactNode;
/**
* The class names to append.
*/
className?: string;
};
export function Card({ children, className }: CardProps): ReactElement {
return <div className={cn("bg-secondary rounded-lg p-3", className)}>{children}</div>;
}