perplexity-hackathon-LawMitra / perplexity_hackathon / demo / web / src / components / shared / Card.tsx
Card.tsx
Raw
import React from 'react';

interface CardProps {
  children: React.ReactNode;
  className?: string;
}

export function Card({ children, className = '' }: CardProps) {
  return (
    <div
      className={`rounded-lg bg-white p-4 shadow-sm transition-shadow hover:shadow-md ${className}`}
    >
      {children}
    </div>
  );
}