Files
UT-Registration-Plus/src/views/components/common/Card/Card.tsx
2024-02-05 21:27:22 -06:00

28 lines
642 B
TypeScript

import clsx from 'clsx';
import React from 'react';
import styles from './Card.module.scss';
export type Props = {
style?: React.CSSProperties;
className?: string;
onClick?: (...args) => void;
children?: React.ReactNode;
testId?: string;
};
/**
* A reusable Card component that can be used to wrap other components
*/
export default function Card(props: Props) {
return (
<div
style={props.style}
className={clsx(styles.card, props.className)}
onClick={props.onClick}
data-testid={props.testId}
>
{props.children}
</div>
);
}