component

Plant

Potted plant: a tapered planter and a seeded cluster of foliage.

⌖ Explore the library in 3D →

Add it

npx @runek/cli add plant

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

Use it

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

<Plant position={[0, 0, 0]} seed={1} />

Props

export interface PlantProps {
  position?: Vec3
  rotation?: Vec3
  height?: number
  /** Planter color; defaults to the world palette's `wood` slot. */
  potColor?: string
  /** Foliage color; defaults to the world palette's `foliage` slot. */
  foliageColor?: string
  seed?: number
}

Registry manifest

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

Browse the whole catalog in the gallery →.