component

Bed

Bed with a frame, mattress, pillows, and a headboard.

⌖ Explore the library in 3D →

Add it

npx @runek/cli add bed

Pulls @react-three/rapier@^2.2.0, @runek/core@^0.13.0.

Use it

import { Bed } from './runek/Bed'

<Bed position={[0, 0, 0]} />

Props

export interface BedProps {
  position?: Vec3
  rotation?: Vec3
  width?: number
  length?: number
  /** Frame color; defaults to the world palette's `wood` slot. */
  color?: string
  /** Bedding color; defaults to the world palette's `fabric` slot. */
  beddingColor?: string
}

Registry manifest

registry manifest /r/components/bed.json Self-contained JSON: inlined source plus resolved dependencies, exactly what runek add bed fetches.

Browse the whole catalog in the gallery →.