Viewport overlay
v0.64.0, changelogBetaChrome over a map, point cloud, 3D view or camera: ViewportOverlay places it 16 px from the frame's edges and lets the pointer through; ViewportPanel is one piece, Float or scrim.
API reference
Generated from the types. Every part also takes className.
ViewportOverlay
Also takes every prop of <div>.
- position
ViewportOverlayPosition = "top-left"The corner or edge: top-left (the default), top, top-right, bottom-left, bottom, bottom-right, or center (a message over the whole frame).
ViewportPanel
Also takes every prop of HTMLElement.
- as
"div" | "li" | "p" | "span" = "div"The element: apfor a line of words,liinside a list,div(the default) for anything with controls.- variant
"float" | "scrim" = "float"float (the default) over a map or a canvas; scrim for words over a picture.- ref
((instance: HTMLElement | null) => void | (() => VoidOrUndefinedOnly) | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLElement | null>