component
Window
Window with frame and translucent pane.
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 →.