component

Window

Window with frame and translucent pane.

⌖ Explore the library in 3D →

Add it

npx runek add window

Pulls core.

Use it

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

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

Props

export interface WindowProps {
  position?: Vec3
  rotation?: Vec3
  width?: number
  height?: number
  /** Frame bar thickness, in units. */
  frame?: number
  depth?: number
  color?: string
  glassColor?: string
}

See it live with editable props in the gallery →.