component

Pillar

Column with a plinth, a tapered (optionally fluted) shaft, and a capital.

⌖ Explore the library in 3D →

Add it

npx @runek/cli add pillar

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

Use it

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

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

Props

export interface PillarProps {
  position?: Vec3
  rotation?: Vec3
  height?: number
  /** Shaft radius at the base, in units. */
  radius?: number
  /** Vertical flutes around the shaft; 0 = smooth. */
  flutes?: number
  /** Defaults to the world palette's `stone` slot. */
  color?: string
}

Registry manifest

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

Browse the whole catalog in the gallery →.