component
Road
A paved street: a flat stone deck with low kerbs, draped on the ground like Path; decorative (no collider).
Add it
npx @runek/cli add road
Pulls @runek/core@^0.13.0.
Use it
import { Road } from './runek/Road'
<Road position={[0, 0, 0]} />
Props
export interface RoadProps extends WorldComponentProps {
/** Length along local Z, in units. */
length?: number
/** Width along local X, in units. */
width?: number
/** Deck color; defaults to the palette's `stone`. */
color?: string
/** Kerb color; defaults to the palette's `woodDark`. */
kerbColor?: string
}
Registry manifest
registry manifest /r/components/road.json Self-contained JSON: inlined source plus resolved dependencies, exactly whatrunek add road fetches.
Browse the whole catalog in the gallery →.