component

Lamp

Lamp that emits a point light.

⌖ Explore the library in 3D →

Add it

npx @runek/cli add lamp

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

Use it

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

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

Props

export interface LampProps {
  position?: Vec3
  rotation?: Vec3
  height?: number
  /** Base + pole color. Defaults to the world palette's `metal` slot. */
  color?: string
  shadeColor?: string
  lightColor?: string
  intensity?: number
  /** Candle-like intensity flicker, 0–1; 0 holds the light steady. */
  flicker?: number
}

Registry manifest

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

Browse the whole catalog in the gallery →.