MDK Logo
ReferenceUIComponents

Overlay Components

Popovers, tooltips, dropdowns, and overlay panels

Components for overlays and floating UI elements.

Prerequisites

  • Complete the installation
  • Import styles: import '@tetherto/mdk-react-devkit/styles.css'

Components

Popover

Popover Root - Container for a single popover

agent-ready

SimplePopover

One-line convenience wrapper that pairs a trigger with floating content — no provider boilerplate.

agent-ready

Props

PropTypeRequiredDefaultDescription
triggerReact.ReactNode-Element that triggers the popover
contentReact.ReactNode-Popover content
sidePosition | undefined"bottom"Position of the popover relative to trigger
alignFlexAlign | undefined"center"Alignment of the popover
sideOffsetnumber | undefined8Distance from the trigger in pixels
showArrowboolean | undefinedfalseWhether to show the arrow
showCloseboolean | undefinedfalseWhether to show a close button
classNamestring | undefined-Additional class for content
openboolean | undefined-Controlled open state
onOpenChange((open: boolean) => void) | undefined-Callback when open state changes

SimpleTooltip

One-line convenience wrapper around the full <[**Tooltip**](/reference/ui/components/overlays/#tooltip)> primitive set. Pass content (the hover text) and any single React element as children<[**SimpleTooltip**](/reference/ui/components/overlays/#simpletooltip)> handles the provider, trigger, p…

agent-ready

Props

PropTypeRequiredDefaultDescription
contentReact.ReactNode-Tooltip content (string or JSX)
sidePosition | undefined"top"Position of the tooltip relative to trigger
sideOffsetnumber | undefined8Distance from the trigger in pixels
delayDurationnumber | undefined200Delay before showing tooltip (ms)
showArrowboolean | undefinedtrueWhether to show the arrow
classNamestring | undefined-Additional class for content
childrenReact.ReactNode-Element that triggers the tooltip

Tooltip

Tooltip Root - Container for a single tooltip

agent-ready

On this page