component
Shelf
Wall shelf with planks.
Add it
npx @runek/cli add shelf
Pulls @react-three/rapier@^2.2.0, @runek/core@^0.13.0.
Use it
import { Shelf } from './runek/Shelf'
<Shelf position={[0, 0, 0]} />
Props
export interface ShelfProps {
position?: Vec3
rotation?: Vec3
width?: number
height?: number
depth?: number
shelves?: number
/** Defaults to the world palette's `wood` slot. */
color?: string
}
Registry manifest
registry manifest /r/components/shelf.json Self-contained JSON: inlined source plus resolved dependencies, exactly whatrunek add shelf fetches.
Browse the whole catalog in the gallery →.