mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-04-13 00:36:54 +00:00
20 lines
439 B
TypeScript
20 lines
439 B
TypeScript
import React from 'react';
|
|
|
|
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
|
|
export const Card = React.forwardRef<HTMLDivElement, CardProps>(
|
|
({ className = '', children, ...props }, ref) => {
|
|
return (
|
|
<div
|
|
ref={ref}
|
|
className={`bg-surface-highest rounded-md p-6 shadow-card ${className}`}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
);
|
|
|
|
Card.displayName = 'Card';
|