CodeBlock
Properties
Use CodeBlock
Display and copy multiline source in a bounded, keyboard-scrollable surface.
Design notes
- Pass original source text. Indentation and line breaks are preserved when copying.
- Use wrap when reading across a narrow surface matters more than retaining visual line width.
- Use CodeSnippet for a short command or inline installation snippet. The CodeBlock language is a label.
API reference
View TypeScript source