@plocks/code
v0.2.0
Published
Code blocks with syntax highlighting, and Markdown rendering, for plocks.
Maintainers
Readme
Code blocks with syntax highlighting, and Markdown rendering, for plocks. Part of plocks: it builds on @plocks/ui and reads the same theme.
Contains CodeBlock and Markdown.
Installation
npm install @plocks/ui @plocks/codeUsage
Render inside the PlocksProvider from @plocks/ui:
import { CodeBlock } from '@plocks/code';
<CodeBlock language="tsx">{`const hello = 'world';`}</CodeBlock>See plocks.dev for every component, prop and example.
