'use client' import React from 'react' import './index.css' const baseClass = 'card-grid' export type CardGridProps = { readonly ariaLabel: string readonly className?: string readonly getItemClassName?: (item: T) => string | undefined readonly getKey: (item: T) => React.Key readonly id?: string readonly items: readonly T[] readonly renderItem: (item: T) => React.ReactNode } /** A presentation-only responsive grid. Selection, navigation, and drag behavior belong to callers. */ export const CardGrid = ({ id, ariaLabel, className, getItemClassName, getKey, items, renderItem, }: CardGridProps) => (
    {items.map((item) => (
  • {renderItem(item)}
  • ))}
)