Skip to content

Code block

53 lines · 1 file · MIT

Highlighted code in its own scroll box, with an optional filename bar and a copy button.

response.json
{
  "slug": "launch",
  "destination": "https://northwind.example/launch?utm_source=newsletter",
  "domain": "go.northwind.example",
  "clicks": 1284
}
curl https://rdyrct.com/api/links \
  -H 'authorization: Bearer rd_live_9f2c'

Install

One command. The files land in your repo, with everything they import.

$ bunx shadcn@latest add @blocco/code-block
Category
Display
Files
code-block.tsx
Brings in
sugar-high