# Zoom into UI

> A scroll section that flies into a live product screen, from the whole dashboard down to one data point, with captions per level.

- Type: Block
- Page: https://uiarc.dev/components/blocks/zoom-into-ui
- Markdown: https://uiarc.dev/components/blocks/zoom-into-ui/markdown

- Access: Arc Pro
- Registry id: `zoom-into-ui`
- Source file: `registry/blocks/zoom-into-ui/zoom-into-ui.tsx`
- Keywords: scroll zoom, product tour, camera, zoom into ui, feature section, scrollytelling, marketing

Use this on a product or feature page to walk from the big picture into one feature. Swap the ProductScreen for your own UI, mark each target with data-zone, and describe the levels in zoom-into-ui-data.ts; the camera frames whatever you mark.

## When to use

- A feature page that walks from the whole product into one feature.
- A launch page where the zoom itself tells the story of drilling down.

## When not to use

- A real in-app tour; use product-tour or onboarding-tour.
- Content people need to read or interact with; the screen is a picture made of UI.

## Installation

Zoom into UI is part of Arc Pro. The live preview is public; the source and install command need Pro.

### CLI with a Pro token

1. Create a token in your account and set it in the environment (or `.env.local`). Never commit it.

```bash
export ARC_PRO_TOKEN=arc_pro_...
```

2. Add the Pro registry to `components.json`:

```json
{
  "registries": {
    "@uiarc": "https://uiarc.dev/r/{name}.json",
    "@uiarc-pro": {
      "url": "https://uiarc.dev/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${ARC_PRO_TOKEN}"
      }
    }
  }
}
```

3. Install:

```bash
npx shadcn@latest add @uiarc-pro/zoom-into-ui
```

### Manual

Signed-in Pro members can copy the source from the Manual tab on the docs page.

- Plans: https://uiarc.dev/pricing
- Create a Pro token: https://uiarc.dev/account#pro-access
- Setup guide: https://uiarc.dev/docs/ai#pro-access

## Usage

```tsx
import { ZoomIntoUi } from "@/components/arc/blocks/zoom-into-ui/zoom-into-ui";

export function Tour() {
  return (
    <ZoomIntoUi
      levels={[
        { id: "all", target: "screen", title: "Everything at a glance", body: "Your numbers, live." },
        { id: "chart", target: "chart", title: "Open any metric", body: "See the days behind it." },
      ]}
    />
  );
}
```

## API reference

### ZoomIntoUi

A scroll driven section that flies a camera into a live product screen: from the whole dashboard into a chart, a single data point and the thread about it, with a caption per level and everything outside the frame dimmed.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `levels` | `ZoomLevel[]` | `sampleLevels` | One entry per zoom level with id, target ("screen", "chart", "peak" or "insight"), title and body. |
| `label` | `string` | `"Tidal product tour"` | Accessible name of the section and its scroll region. |
| `onLevelChange` | `(index: number) => void` | – | Called when the current level changes. |
| `className` | `string` | – | Extra class on the section. |

## Keyboard interactions

| Keys | Action |
| --- | --- |
| Tab | Focuses the scroll region, then the level buttons. |
| Arrow keys / Page Up / Page Down / Space | Scroll the region, which drives the zoom. |
| Enter / Space on a level | Scrolls to that level. |

## Accessibility

- The scroll region is focusable and labelled, so keyboard users can scroll it.
- The product screen is decorative and hidden from assistive tech; captions carry the story and are announced politely as they change.
- Level buttons are labelled with their caption and mark the current one with aria-current.

## Motion

- Scroll progress passes through a spring, then the camera blends scale geometrically and moves its focus with the inverse of scale, so the target stays put while you fly into it.
- Each level holds for a moment before the camera moves on; captions swap in the scroll direction with a short blur.
- The screen is real DOM, so text stays sharp at every zoom and it follows the theme and accent.
- Reduced motion jumps between levels and crossfades the captions.

## Responsive behavior

- The stage and caption share a frame of about 84vh; the screen scales to fit at any width.
- Below 560px the level buttons move above the caption and stretch across.

## Performance

- One transform on one element per frame, written directly without re-rendering React.
- Layout is measured once per resize; scroll only reads scrollTop.

## Notes for AI

- Replace ProductScreen with your own UI and mark the parts you want to frame with data-zone; the camera measures them.
- Keep three to five levels; each needs one clear thing to look at.
- Frame targets that are at least about 200 by 120 design pixels so the zoom stays under the 3.4x cap.

## Related

- [Scroll story](https://uiarc.dev/components/blocks/scroll-story/markdown): A feature section where scrolling the copy drives a pinned product view through each step.
- [Semantic zoom](https://uiarc.dev/components/blocks/semantic-zoom/markdown): An infinite-zoom map of a company that reveals teams, projects, tasks and people as you fly in.

## Guidance for AI tools

Blocks are complete, self-contained screens with sample data. Replace the sample data and connect the callbacks described above. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://uiarc.dev/llms.txt
