# Device Mockup Zoom

Pull back from a UI to reveal it inside a phone or laptop frame.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).

## Installation

<TabsTrigger value="cli">Command</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>

```bash
npx shadcn@latest add @framecn/device-mockup-zoom
```

<Step>Copy and paste the following code into your project.</Step>

<Step>Update the import paths to match your project setup.</Step>

## Usage

```tsx
import { DeviceMockupZoom } from "@/components/framecn/device-mockup-zoom";
```

```tsx
<DeviceMockupZoom />
```

## API Reference

### DeviceMockupZoom

| Prop               | Type                  | Default     |
| ------------------ | --------------------- | ----------- |
| `children`         | `ReactNode`           | `-`         |
| `device`           | `"laptop" \| "phone"` | `"laptop"`  |
| `frameColor`       | `string`              | `"#1f1f1f"` |
| `screenColor`      | `string`              | `"#0a0a0a"` |
| `background`       | `string`              | `"#fafafa"` |
| `speed`            | `number`              | `1`         |
| `fps`              | `number`              | `30`        |
| `durationInFrames` | `number`              | `120`       |
| `width`            | `number`              | `1280`      |
| `height`           | `number`              | `720`       |
| `className`        | `string`              | `-`         |