Code Block

Display syntax-highlighted code snippets using Shiki.


📦 Installation

Install this component using the CLI:

pnpm dlx shadcn@latest add https://shadcn-collections.vercel.app/r/codeblock.json


🔍 Preview


🎨 Line Number

if you want to display line number, add this to your global.css file