blob: 5ff89b614c0cd7281d7b7d4bf4e1063c16cfa620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { ComponentPropsWithoutRef, Ref } from "react";
import classNames from "classnames";
import "./Card.css";
interface CardProps extends ComponentPropsWithoutRef<"div"> {
containerRef?: Ref<HTMLDivElement> | null;
}
export default function Card({
className,
children,
containerRef,
...otherProps
}: CardProps) {
return (
<div
ref={containerRef}
className={classNames("cru-card", className)}
{...otherProps}
>
{children}
</div>
);
}
|