@threlte/flex

Examples

The package @threlte/flex is well suited for building responsive layouts. Especially in an XR context, where using the DOM is (currently) not possible you have to rely on solutions that are native to WebGL.

The following examples show how to use the @threlte/flex package to build responsive layouts in WebGL.

The left side is the CSS implementation, the right side is using @threlte/flex.