SPB Git

spb/autoscholar

Public
298 B · 16 lines tsx
1export function CodeBlock({2  code,3  lang,4  maxHeight = "28rem",5}: {6  code: string;7  lang?: string;8  maxHeight?: string;9}) {10  return (11    <pre className="surface overflow-auto p-4 text-xs leading-relaxed" style={{ maxHeight }} data-lang={lang}>12      <code>{code}</code>13    </pre>14  );15}16
Files · 0d8280a29f83e41fbeda1fded3fa94709eba2e7d
Menu

Theme