# ComponentRoute

`interface` in `http` · v0.4.1

<https://docs.seedcord.org/packages/http/0.4.1/interfaces/component-route>

A button, select, or modal row. `kind` picks the per-kind map, `prefix` is the stable customId prefix the receiver routes by (the routeKey minus its layout hash).

```ts
interface ComponentRoute extends RouteModule
```

## Properties

### exportName

```ts
readonly exportName: string
```

The exported binding inside the loaded module.

### from

```ts
readonly from: string
```

The source file the row came from, reported when the export is missing.

### kind

```ts
readonly kind: 'button' | `${SelectMenuKind}Select` | 'modal'
```

### load

```ts
readonly load: () => Promise<Record<string, unknown>>
```

Lazy import of the module, evaluated on first hit.

### prefix

```ts
readonly prefix: string
```
