Skip to content

Code block

Pro

Source code for documentation, highlighted at build time, with a copy button and optional line numbers. Not an M3 component (@windmorph/react-pro).

import { CodeBlock } from '@windmorph/react-pro';

Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.

Examples

Highlighted, with a title

Line numbers

Plain text, with and without copying