Skip to content

Code

stable

Inline or block code display with syntax styling

Typography/Storybook ↗
import { Code } from "@nodus/design-system"
Loading demo…

Props

variant
Type "inline" | "block"Default "inline"

Inline <code> or block <pre><code>

Metadatainlineblocktypesurfaceborder
MobileWorks As-Is

Code blocks use overflow-x-auto for long lines. Works on mobile without modification.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?