# Road

> A paved street: a flat stone deck with low kerbs, draped on the ground like Path; decorative (no collider).

## Add it

```bash
npx @runek/cli add road
```

Pulls `@runek/core@^0.15.0`.

## Use it

```tsx
import { Road } from './runek/Road'

<Road position={[0, 0, 0]} />
```

Or as a node in a world file ([worlds as data](https://runek.nullorder.org/docs/worlds-as-data.md)):

```json
{ "type": "Road", "props": { "position": [0, 0, 0] } }
```

## Props

| Prop | Type | Default | Description |
|---|---|---|---|
| `length` | `number` | `12` | Length along local Z, in units. |
| `width` | `number` | `3` | Width along local X, in units. |
| `color` | `color` |  | Deck color; defaults to the palette's `stone`. |
| `kerbColor` | `color` |  | Kerb color; defaults to the palette's `woodDark`. |
| `position` | `[x, y, z]` | `[0, 0, 0]` | Position [x, y, z] in units (1 unit = 1 m, Y-up). |
| `rotation` | `[x, y, z]` | `[0, 0, 0]` | Euler rotation [x, y, z] in radians. |
| `seed` | `number` |  | Accepted for the component contract; this component has no seeded variation yet. |

## Registry manifest

[https://runek.nullorder.org/r/components/road.json](https://runek.nullorder.org/r/components/road.json): Self-contained JSON: inlined source plus resolved dependencies, exactly what `runek add road` fetches.

Browse the whole catalog in the **[gallery →](https://runek.nullorder.org/gallery)**.
