component

Chair

Chair with seat, back, and legs.

⌖ Explore the library in 3D →

Add it

npx runek add chair

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

Use it

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

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

Props

export interface ChairProps {
  position?: Vec3
  rotation?: Vec3
  width?: number
  depth?: number
  seatHeight?: number
  backHeight?: number
  /** Defaults to the world palette's `wood` slot. */
  color?: string
}

See it live with editable props in the gallery →.