Documentation

Asgard

Getting started

Theming

Guides

Layout

Docking

Inputs & forms

Button

Switch

Checkbox

Radio

Select

Slider

TextBox

Upload

ImageCropper

Pickers

Color picker

Calendar

Time picker

DateTime input

Data display

Card

Accordion

Typography

Progress

DataTable

TreeView

SyntaxColor

MarkdownRenderer

Terminal

Layout & docking

Grid

Splitter

SDiv

Dock

Theme switcher

Media query

Feedback & overlays

Alert

Toast

Tooltip

Popups

Drawer

FloatingPanel

FloatingWindow

Navigation & chrome

Breadcrumb

Stepper

Toolbar

Ribbon

ContextMenu

FeatureTour

Documentation

Asgard

Getting started

Theming

Guides

Layout

Docking

Inputs & forms

Button

Switch

Checkbox

Radio

Select

Slider

TextBox

Upload

ImageCropper

Pickers

Color picker

Calendar

Time picker

DateTime input

Data display

Card

Accordion

Typography

Progress

DataTable

TreeView

SyntaxColor

MarkdownRenderer

Terminal

Layout & docking

Grid

Splitter

SDiv

Dock

Theme switcher

Media query

Feedback & overlays

Alert

Toast

Tooltip

Popups

Drawer

FloatingPanel

FloatingWindow

Navigation & chrome

Breadcrumb

Stepper

Toolbar

Ribbon

ContextMenu

FeatureTour

Feedback & overlays

A panel anchored to a trigger.

A floating panel that anchors to a reference element for building dropdowns, popovers, and contextual overlays.

Key features:

  • Multiple placement positions (e.g., top, bottom-start, right)
  • Auto-repositions to stay within viewport bounds
  • matchAnchorWidth for dropdown-style panels
  • Built-in click-outside and escape key dismissal
Loading preview…
When to use it
  • Popovers and rich dropdowns
  • Inline editors and pickers
  • Contextual help bubbles
  • Auto-positioned menus with an arrow
Properties
PropTypeDefaultDescription
anchorRefReact.RefObject<HTMLElement>Reference to the DOM element that the floating panel anchors to for positioning.
isOpenbooleanControls whether the floating panel is currently visible.
onClose() => voidCallback invoked when the panel requests to be closed.
position'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end'Preferred placement of the panel relative to the anchor element.
offsetnumberPixel distance between the anchor element and the floating panel edge.
widthnumber | 'auto' | 'fit-content'Width of the panel. Use a number for fixed pixels, or auto/fit-content for dynamic sizing.
matchAnchorWidthbooleanWhen true, the panel width matches the anchor element width, ideal for dropdown-style panels.
closeOnClickOutsidebooleantrueCloses the panel when the user clicks outside of it.
Notes
  • The panel automatically repositions to the opposite side if the preferred position would cause it to overflow the viewport.
  • Set matchAnchorWidth to true for dropdown-style panels that should be the same width as their trigger element.
Presets