CodeView
파일명, 줄 번호, 강조와 파일 작업을 갖춘 읽기 전용 코드 표면을 제공한다.
활용 방법
Source file
Preview
src/index.ts3 lines
| 1 | export { Button } from "./button"; |
|---|---|
| 2 | export { Dialog } from "./dialog"; |
| 3 | export { FileTree } from "./file-tree"; |
tsx
<CodeView filename="src/index.ts" lines={[{ number: 1, content: `export { Button } from "./button";` }]} />