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

Function BlockCards

src/showcase/ui-group/BlockCards.tsx:39–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37]
38
39const BlockCards = () => {
40 return (
41 <div>
42 <div className="grid grid-cols-2 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
43 {data.map((item, index) => (
44 <Link href={item.link} key={index} className="no-underline">
45 <Card title={item.title}>
46 {item.image ? (
47 <Image
48 width={200}
49 height={200}
50 src={item.image}
51 alt={item.title}
52 className="h-auto w-[150px] duration-300 ease-in-out group-hover:scale-110 md:w-[200px]"
53 />
54 ) : item.component ? (
55 item.component
56 ) : null}
57 </Card>
58 </Link>
59 ))}
60 </div>
61 </div>
62 )
63}
64
65export default BlockCards

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected