diff options
Diffstat (limited to 'FrontEnd/src/views/common/Card.tsx')
-rw-r--r-- | FrontEnd/src/views/common/Card.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/FrontEnd/src/views/common/Card.tsx b/FrontEnd/src/views/common/Card.tsx index e1af13a9..fb29f728 100644 --- a/FrontEnd/src/views/common/Card.tsx +++ b/FrontEnd/src/views/common/Card.tsx @@ -7,10 +7,12 @@ import "./Card.css"; interface CardProps extends ComponentPropsWithoutRef<"div"> { containerRef?: Ref<HTMLDivElement>; color?: ThemeColor; + noBackground?: boolean; } export default function Card({ color, + noBackground, className, children, containerRef, @@ -19,7 +21,12 @@ export default function Card({ return ( <div ref={containerRef} - className={classNames("cru-card", `cru-card-${color ?? "primary"}`, className)} + className={classNames( + "cru-card", + `cru-card-${color ?? "primary"}`, + noBackground && "cru-card-no-background", + className, + )} {...otherProps} > {children} |