CodeSnippet

A code block with tabs, line numbers, and a copy button.

CodeSnippet takes a languages array; more than one entry shows tabs. Use maxLines for a Show More toggle, and CodeSnippetInline for one-line commands. Code always renders left to right.

Multiple languages

Single language, no line numbers

Collapsible with Show More

Inline command