FloatingPanel
Viewport-anchored floating panel built from Base UI modal atoms for contextual side conversations, task runs, inspectors, and other non-blocking auxiliary surfaces.
import { FloatingPanel } from '@lobehub/ui/base-ui';Feedback
Basic
Loading preview
Toast dodging
Loading preview
Notes
FloatingPanelis resizable by default. The active resize handles follow the placement anchor so the panel remains attached to its viewport corner.- Use
minWidth,maxWidth,minHeight, andmaxHeightto constrain resize bounds. - Use
resizable={false}for fixed auxiliary panels. - A
bottomRightpanel moves the bottom-right toast viewport out of its way while it is open, and restores it on close. The verdict is left shift, then up shift, then a narrowed toast, and finally the panel lifting its own bottom edge — so a toast never renders inside the panel.
Helpful?