MCPcopy
hub / github.com/code-hike/codehike / Examples

Function Examples

apps/web/content/docs/examples.tsx:4–36  ·  view source on GitHub ↗
(props: unknown)

Source from the content-addressed store, hash-verified

2import { z } from "zod"
3
4export function Examples(props: unknown) {
5 const { blocks, title, children } = parseProps(
6 props,
7 Block.extend({
8 blocks: z.array(
9 Block.extend({
10 repo: ImageBlock,
11 img: ImageBlock,
12 }),
13 ),
14 }),
15 )
16 return (
17 <section className="">
18 <h2 className="">{title}</h2>
19 <div className="">{children}</div>
20 <div className="flex flex-wrap gap-4">
21 {blocks.map((example) => (
22 <a
23 className="min-w-80 w-80 border border-secondary rounded bg-secondary/50 overflow-hidden cursor-pointer hover:border-primary/50 hover:opacity-100 transition-colors no-underline"
24 key={example.title}
25 href={example.repo.url}
26 target="_blank"
27 rel="noopener"
28 >
29 <img src={example.img.url} alt={example.title} className="m-0" />
30 <h3 className="m-3 text-lg">{example.title}</h3>
31 </a>
32 ))}
33 </div>
34 </section>
35 )
36}

Callers

nothing calls this directly

Calls 1

parsePropsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…