---
url: /api/kiln/interfaces/Prefab.md
---
[Kiln API](../../index.md) / [kiln](../index.md) / Prefab

# Interface: Prefab\<P>

A named spawn recipe, so agents never hand-assemble trait lists.

## Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `P` | `void` |

## Properties

| Property | Modifier | Type |
| ------ | ------ | ------ |
|  `[$prefab]` | `readonly` | `true` |
|  `build` | `readonly` | (`params`) => `ConfigurableTrait`\[] |
|  `name` | `readonly` | `string` |

## Methods

### named()

```ts
named(name): this;
```

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |

#### Returns

`this`
