MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / ComponentCards

Function ComponentCards

src/showcase/ui-group/ComponentCards.tsx:58–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56]
57
58const ComponentCards = () => {
59 return (
60 <div>
61 <div className="grid grid-cols-2 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
62 {data.map((item, index) => (
63 <Link href={item.link} key={index} className="no-underline">
64 <Card title={item.title}>
65 {item.image ? (
66 <Image
67 width={200}
68 height={200}
69 src={item.image}
70 alt={item.title}
71 className="h-auto w-[150px] duration-300 ease-in-out group-hover:scale-110 md:w-[200px]"
72 />
73 ) : item.component ? (
74 item.component
75 ) : null}
76 </Card>
77 </Link>
78 ))}
79 </div>
80 </div>
81 )
82}
83
84export default ComponentCards

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected