Skip to content

r3f-xr-widgets / HorizonWindowProps

Interface: HorizonWindowProps

Defined in: src/components/HorizonWindow.tsx:255

Props for the HorizonWindow component

Properties

children?

optional children: ReactNode

Defined in: src/components/HorizonWindow.tsx:257

React children to render inside the window content area


height

height: number | Signal<number>

Defined in: src/components/HorizonWindow.tsx:261

Window height in pixels (can be a number or @preact/signals Signal for reactive sizing)


maxHeight?

optional maxHeight: number

Defined in: src/components/HorizonWindow.tsx:269

Maximum allowed height in pixels

Default

ts
700

maxWidth?

optional maxWidth: number

Defined in: src/components/HorizonWindow.tsx:265

Maximum allowed width in pixels

Default

ts
1000

minHeight?

optional minHeight: number

Defined in: src/components/HorizonWindow.tsx:267

Minimum allowed height in pixels

Default

ts
250

minWidth?

optional minWidth: number

Defined in: src/components/HorizonWindow.tsx:263

Minimum allowed width in pixels

Default

ts
300

onResize()?

optional onResize: (width, height) => void

Defined in: src/components/HorizonWindow.tsx:275

Callback fired when window is resized with new dimensions

Parameters

width

number

height

number

Returns

void


pixelSize?

optional pixelSize: number

Defined in: src/components/HorizonWindow.tsx:271

Size of each pixel in meters (controls overall window scale)

Default

ts
0.0015

titleBar

titleBar: ReactNode

Defined in: src/components/HorizonWindow.tsx:277

Title bar content (typically a HorizonWindowTitleBar component)


useProximity?

optional useProximity: boolean

Defined in: src/components/HorizonWindow.tsx:273

Enable proximity-based edge fading

Default

ts
false

width

width: number | Signal<number>

Defined in: src/components/HorizonWindow.tsx:259

Window width in pixels (can be a number or @preact/signals Signal for reactive sizing)

Released under the MIT License.