# Terminal output

> Unhighlighted command output with a wrap toggle.

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-code-block-9).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-code-block-9
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-code-block-9-light-fb7b4e04c6516d92.png
- Registry item: https://reui.io/r/new-york-v4/c-code-block-9.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-code-block-9.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@reui/code-block`

## Files

### `c-code-block-9.tsx`

```tsx
import {
  CodeBlock,
  CodeBlockCopyButton,
  CodeBlockHeader,
  CodeBlockTitle,
  CodeBlockWrapToggle,
} from "@/components/reui/code-block/code-block"

/**
 * Terminal output has no grammar to tokenize, so `highlight={false}` skips the
 * highlighter and shiki is never loaded for this block. The wrap toggle still
 * works, because wrapping is a layout concern rather than a highlight one.
 */
const output = `$ turbo build --filter @acme/web
· Packages in scope: @acme/web
· Running build in 1 package
@acme/web:build: ▲ Next.js 16.3.0
@acme/web:build: Creating an optimized production build ...
@acme/web:build: ✓ Compiled successfully in 42.1s
@acme/web:build: Route (app)                                Size     First Load JS
@acme/web:build: ┌ ○ /                                      5.12 kB         112 kB
@acme/web:build: └ ○ /pricing                               2.94 kB         109 kB
 Tasks:    1 successful, 1 total
 Time:     48.331s`

export function Pattern() {
  return (
    <div className="w-full max-w-2xl">
      <CodeBlock
        code={output}
        language="bash"
        highlight={false}
        label="Build output"
      >
        <CodeBlockHeader>
          <CodeBlockTitle>Terminal</CodeBlockTitle>
          <div className="ml-auto flex items-center gap-1.5">
            <CodeBlockWrapToggle />
            <CodeBlockCopyButton />
          </div>
        </CodeBlockHeader>
      </CodeBlock>
    </div>
  )
}
```
