Skip to content
GitHub

Floating Panel

Used to display content in a non-modal floating window

Installation

Usage

Examples

Controlled Size

Control the panel size programmatically using the size and onSizeChange props.

Controlled Position

Control the panel position programmatically using the position and onPositionChange props.

Custom spacing

Use [--space:--spacing("value")] on <FloatingPanelContent /> to adjust internal padding (default --spacing(4)).

API Reference

FloatingPanel

Root component. Manages panel position and drag state.

FloatingPanelTrigger

Opens the floating panel on click.

FloatingPanelContent

Holds the panel content.

FloatingPanelHeader

Header area. Acts as drag handle for repositioning.

FloatingPanelTitle

Title for the panel.

FloatingPanelBody

Scrollable body. Uses ScrollArea for overflow.

FloatingPanelCloseTrigger

Closes the panel on click.


For a complete list of props, see the Ark UI documentation.