Skip to content

1681-engine / react / UiProvider

Function: UiProvider() ​

ts
function UiProvider(__namedParameters): Element;

Defined in: src/react/UiProvider.tsx:66

Optional: sets the touch mode, the window scale, the words and the box to place things in for every component below it. A UI mounted in a DomOverlay passes the overlay's content size as viewport and the overlay's content as portal, so tooltips and lists land inside its scaled box.

Parameters ​

ParameterType
__namedParametersUiProviderProps

Returns ​

Element

Released under the MIT License.