Skip to content

An open source design system that's fully customizable and agent ready

TypeScript
439 B
Raw Blame
// 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}
    />
  );
}