# build

function in `@dioramajs/model/box`

```ts
import { build } from '@dioramajs/model/box'
```

The box of a `width` × 1 front and `depth`, its faces in `faces`, bare board in `inside`.
flap: the top on a hinge at its back edge; lift: a lid over the top `LID` of the box; drawer:
a sleeve with a tray that slides out to the right.

```ts
function build(
  width: number,
  depth: number,
  motion: Motion,
  faces: Readonly<Record<FaceName, Material>>,
  inside: Material,
): Built
```

| Parameter | Type | Description |
| --- | --- | --- |
| `width` | `number` |  |
| `depth` | `number` |  |
| `motion` | `Motion` |  |
| `faces` | `Readonly<Record<FaceName, Material>>` |  |
| `inside` | `Material` |  |

Defined in [packages/model/src/box.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/model/src/box.ts#L178).
