# Laptop Frame

Laptop lid with a bezel around your screen content, sitting on a simple deck with a hinge line.

```bash
npx shadcn add https://www.reelcn.dev/r/laptop-frame.json
```

Usage:

```tsx
<Center>
  <LaptopFrame>
    <div style={{ width: "100%", height: "100%", background: "#fff" }} />
  </LaptopFrame>
</Center>
```

Use for:

- Framing a desktop app, dashboard or website screenshot in a launch video
- Two builds side by side inside `split-screen` for a before/after

Avoid:

- A phone or tablet screen. Use `phone-frame`


## Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| delay? | `number` | — | Frames to wait before entering. |
| duration? | `number` | — | Enter duration in frames. Defaults to 0.6s. Some items reuse `duration` for an unrelated local timing. See that item's own prop docs. |
| exit? | `number \| boolean` | — | Exit at the end of the parent `<Sequence>`. `false` keeps it on screen, a number sets the exit length in frames. |
| motion? | `MotionPersonality` | — | Override the theme's motion personality. |
| poster? | `boolean` | — | Renders fully entered, with no exit: for a still frame or thumbnail. Defaults to `false`. |
| holdFrames? | `number` | — | Delays the start of the exit window by this many frames, for a minimum on-screen hold. Defaults to `0`. |
| width? | `number` | — | Screen width as a fraction of the safe area (0–1). Defaults to 0.78 in landscape, 0.94 otherwise. |
| aspect? | `number` | `16 / 10` | Screen aspect ratio (width / height). Defaults to 16/10. |
| children? | `ReactNode` | — |  |
| color? | `string` | — | Body color. Defaults to a shade between the theme surface and foreground. |
| screenColor? | `string` | — | Screen fill behind the children. Defaults to the theme background. |
| style? | `CSSProperties` | — |  |
| className? | `string` | — |  |