Code Block (Dynamic)
A codeblock that also highlights code
Usage
Client Component
Unlike the MDX CodeBlock
component, this is a client component that can be used without MDX.
It highlights the code with Shiki and use the default component to render it.
Features:
- Can be pre-rendered on server
- load languages and themes on browser lazily
Options
Server Component
For a server component equivalent, you can use the built-in utility from core:
How is this guide?