component
Plant
Potted plant: a tapered planter and a seeded cluster of foliage.
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 whatrunek add plant fetches.
Browse the whole catalog in the gallery →.