# Hero Device Assemble

Floating device layers spring into a laptop or phone, then the screen wakes with a shimmer.

> 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/hero-device-assemble
```

<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 { HeroDeviceAssemble } from "@/components/framecn/hero-device-assemble";
```

```tsx
<HeroDeviceAssemble />
```

## API Reference

### HeroDeviceAssemble

| Prop               | Type                  | Default     |
| ------------------ | --------------------- | ----------- |
| `assembleStart`    | `number`              | `0`         |
| `device`           | `"laptop" \| "phone"` | `"laptop"`  |
| `accentColor`      | `string`              | `"#22c55e"` |
| `speed`            | `number`              | `1`         |
| `fps`              | `number`              | `30`        |
| `durationInFrames` | `number`              | `150`       |
| `width`            | `number`              | `1280`      |
| `height`           | `number`              | `720`       |
| `className`        | `string`              | `-`         |

## Notes

  Devices spring into place from floating layers, then the screen wakes with a
  shimmer effect. The device prop selects laptop or phone.