@mocanvas/mocanvas · function

FloatingLayer

declare function FloatingLayer({ anchorRef, open, onClose, prefer, role, label, className, keyboardNav, children, }: FloatingLayerProps): react.JSX.Element | null

A positioned, dismissable layer portalled into the editor's container.

Portalled rather than rendered in place so it escapes the overflow: hidden of whatever panel opened it, while staying inside the container that carries the theme's CSS custom properties.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.