react18-tools/esbuild-plugin-react18-css

View on GitHub
packages/shared-ui/src/cards/card.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import styles from "./cards.module.css";

export interface CardProps {
  href: string;
  title: string;
  description: string;
}

export function Card({ href, title, description }: CardProps) {
  return (
    <a className={styles.card} href={href} rel="noopener noreferrer" target="_blank">
      <h2>
        {title} <span>-&gt;</span>
      </h2>
      <p>{description}</p>
    </a>
  );
}