DS0
Components

Dock

A floating, draggable panel for tool palettes, debug panels, and floating widgets.

Overview

Dock provides a floating panel that can be dragged to any position on screen. Use for tool palettes, inspector panels, debug overlays, and floating widgets.

Usage

<Dock position="bottom-right">
  <Dock.Header>Inspector</Dock.Header>
  <Dock.Content>
    <p>Panel content here</p>
  </Dock.Content>
</Dock>

API Reference

PropTypeDefaultDescription
position'top-left' | 'top-right' | 'bottom-left' | 'bottom-right''bottom-right'Initial position
draggablebooleantrueAllow dragging
resizablebooleanfalseAllow resizing
minimizablebooleantrueShow minimize button
ComponentWhen to Use Instead
DrawerSliding panel from edge
DialogModal overlay
PopoverAnchored to a trigger

On this page