Magoo Component UI logo Magoo Component UI
← Catalog

Resizable Panel

resizable-panel molecule experimental

A panel with a draggable edge handle that resizes its width or height.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default

Filters

Drag the right edge to widen or narrow this panel. It starts at a comfortable default width and resizes between sensible bounds.

  • Availability
  • Price range
  • Rating
  • Category
Bottom

Console

$ build started
$ compiled 42 modules
$ ready in 1.2s
$ watching for changes...

Props

NameTypeReq
title string
edge enum (right | bottom)

Slots

  • content — The panel body; scrolls when it overflows the panel size.

Related components

How to use

The panel ships with a default size (w-72 / h-64) so the base render is correct with no JavaScript. behavior.js reads the data-edge attribute and drags that edge with Pointer Events (pointerdown/move/up with setPointerCapture), updating the panel's inline width (right edge) or height (bottom edge) and clamping to sensible min/max bounds. All listeners are removed on cleanup.

Use cases

containerpanel WCAG AA SEO 20 dir: both ai-generated