Resizable Split
Two panels separated by a drag handle so people can adjust the space between them. Use it when both panels hold working content and the right balance depends on the task, such as an editor beside its results. In product code this is Resizable.PanelGroup, Resizable.Panel and Resizable.Handle.
Example: rule editor and test panel
A governance rule page inside the full application shell. The left panel holds the YAML editor and the right panel runs the rule against sample commits. The group sits in a bordered frame and starts at a 40 / 60 split.
Example: request and response
An API testing page. The request builder takes the larger share at 55 / 45 because people spend most of their time editing it; the response panel can shrink to a 25% minimum. There is no frame, so the handle with grip sits directly on the page.
Example: eval studio
An evaluation studio with a canvas on the left and results on the right. This one uses a plain handle without the grip, because the divider between the two panels already reads as a boundary.
Anatomy
- Panel group.
Resizable.PanelGroupwithdirection="horizontal"for side-by-side panels. It needs a height, such as a fixedheight,min-h-[600px]or a flex parent withh-full, otherwise the panels collapse. - Panels. Each
Resizable.Paneltakes adefaultSizeand aminSize, both as percentages. The sizes of all panels in a group should add up to 100. - Handle.
Resizable.Handlebetween panels. AddwithHandleto show a grip so the drag target is easy to find. - Panel content. Each panel fills its area and scrolls on its own. Give panels
min-h-0andoverflow-autoso long content scrolls inside the panel and not the page.
Guidelines
- Always set
minSizeon every panel, typically 25 to 35, so neither panel can be dragged shut. - Give the panel people work in most the larger share: 55 / 45 for a builder and its output, 40 / 60 for an editor beside results.
- Use
withHandlewhen the groups are framed or dense. Use the plain handle when a border already separates the panels. - Give each panel its own header with a title and actions, so the split reads as two tools rather than one blank area.
- Only split when both panels are useful at the same time. For primary content with supporting details, use main and side columns.