An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {CodeBlock} from '@astryxdesign/core/CodeBlock';
const code = Array.from(
{length: 50},
(_, i) => `const line${i + 1} = ${i + 1};`,
).join('\n');
export default function CodeBlockScrollableBlock() {
return (
<CodeBlock
code={code}
language="typescript"
title="many-lines.ts"
hasLineNumbers
maxHeight={280}
/>
);
}