mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-04-21 20:55:18 +00:00
adding app v2 (#943)
This commit is contained in:
19
www/appv2/src/components/ui/Card.tsx
Normal file
19
www/appv2/src/components/ui/Card.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
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';
|
||||
Reference in New Issue
Block a user