Back to CodeBlock

Ordered

View Source
1
2
3
4
5
6
7
8
9
10
11
import { CodeBlock } from 'mdxts/components'

export function Ordered() {
  return (
    <div style={{ display: 'grid', gap: '2rem' }}>
      <CodeBlock filename="01.example.ts" value="const a = 1;" />
      <CodeBlock filename="02.example.ts" value="const a = 1; const b = 2;" />
    </div>
  )
}
example.ts
const a = 1
example.ts
const a = 1
const b = 2