# Code Block

> Code Block component used across Vercel and Next.js.

- Author: [tigran tumasov](https://21st.dev/@shugar)
- Library: [Geist](https://21st.dev/@shugar/library/geist)
- License: unknown
- npm dependencies: react-syntax-highlighter
- Live preview: https://21st.dev/@shugar/components/code-block

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/shugar/code-block?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt
