component
Bench
Slatted bench with an optional backrest; indoor or outdoor seating.
Add it
npx @runek/cli add bench
Pulls @react-three/rapier@^2.2.0, @runek/core@^0.13.0.
Use it
import { Bench } from './runek/Bench'
<Bench position={[0, 0, 0]} />
Props
export interface BenchProps {
position?: Vec3
rotation?: Vec3
length?: number
depth?: number
seatHeight?: number
/** Include a backrest. */
back?: boolean
/** Defaults to the world palette's `wood` slot. */
color?: string
}
Registry manifest
registry manifest /r/components/bench.json Self-contained JSON: inlined source plus resolved dependencies, exactly whatrunek add bench fetches.
Browse the whole catalog in the gallery →.