Code Block No Highlight 1 - No highlighting

Pro

Plain code display with syntaxHighlighting set to false.

Shadcn Code Block No Highlight 1 component

Component data

ID
code-block/code-block-no-highlight-1
Access
pro
Created
May 23, 2026
Type
example
Libraries
Radix UI, Base UI, React Aria

Code Block No Highlight 1 component design & features

This example passes syntaxHighlighting false to CodeBlockContent to render monospace text without Shiki highlighting.

Unhighlighted blocks work for plain text, config notes, or environments where highlighting adds little value.