# Code Block

> Syntax-highlighted code preview powered by Shiki, with copy button, line numbers, and line highlights.
> Source: https://otf-kit.dev/components/code-block

## At a glance

- **Platform:** Web (React)
- **Category:** Display
- **Package:** `@otfdashkit/ui` (free, MIT)
- **Tags:** code, syntax, shiki

## Install

```bash
bun add @otfdashkit/ui
```

## Usage

```tsx
import { CodeBlock } from '@otfdashkit/ui'
```

The `<CodeBlock>` component ships the same prop API on web (`@otfdashkit/ui`) and native (`@otfdashkit/ui-native`) where a parity version exists.

## Links

- Live preview + code: https://otf-kit.dev/components/code-block
- Storybook: https://ui.otf-kit.dev
- All components: https://otf-kit.dev/components
