MCPcopy
hub / github.com/agentsmd/agents.md / CodeExampleProps

Interface CodeExampleProps

components/CodeExample.tsx:5–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import CopyIcon from "./icons/CopyIcon";
4
5interface CodeExampleProps {
6 /** Markdown content to display; falls back to default example if not provided */
7 code?: string;
8 /** Optional URL for "View on GitHub" link */
9 href?: string;
10 /** If true, render only the code block without the section wrapper */
11 compact?: boolean;
12 /** Override Tailwind height classes for the <pre> block */
13 heightClass?: string;
14
15 /**
16 * When true, vertically center the content and copy button – useful for
17 * single-line shell commands shown inside a short container (e.g. FAQ).
18 */
19 centerVertically?: boolean;
20}
21
22export const HERO_AGENTS_MD = `# AGENTS.md
23

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected