---
title: "Fluid layout customization with Splits"
description: "Replit's Workspace now supports Splits, a tiling layout where tabs, panes and files from the filetree can be dragged onto five hit areas of any pane (header to merge, or four conical-section quadrants to split), plus maximize and float modes."
url: "https://swe.quest/articles/fluid-layout-customization-with-splits-32c6c1613a8a91da"
canonical: "https://replit.com/blog/splits"
source: "Replit"
published: "2022-09-28"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 9
tags: ["frontend","react","data-structures","product-engineering"]
---

# Fluid layout customization with Splits

A post on [Replit](https://swe.quest/sources/replit.md), published 2022-09-28, 9 min read, Announcement. Original: [https://replit.com/blog/splits](https://replit.com/blog/splits)

## Summary

Replit's Workspace now supports Splits, a tiling layout where tabs, panes and files from the filetree can be dragged onto five hit areas of any pane (header to merge, or four conical-section quadrants to split), plus maximize and float modes. The design favours predictability, learnability and fluidity: explicit state visualization, a visible 50px detach radius, continuous resizing during drag, and few special cases, such as always placing auto-created webviews in the top-right node. To get fluid drag behaviour in React, the team used jotai to skip rerenders during drag state updates and wrote custom low-level mouse handlers instead of using a tiling library. Layout is stored as a multi-node tree of Splits and PaneGroups, which drives resize behaviour and simple placement heuristics.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [Data structures](https://swe.quest/tags/data-structures.md) (Architecture & design)
- [Product engineering](https://swe.quest/tags/product-engineering.md) (Engineering organization)

## Prerequisites

- React rendering basics ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- DOM mouse events

## Keywords

Replit, Splits, jotai, React

## Related posts

- [Building Custom Animations in the Workflow Builder](https://swe.quest/articles/building-custom-animations-in-the-workflow-builder-94f541be651a6e1e.md): Slack Engineering · 2023-12-05 · Medium · 7 min read · React, Frontend, Product engineering
  Slack's Workflow Builder added drag-and-drop from a new steps sidebar into workflows by moving react-beautiful-dnd's DragDropContext to wrap the whole builder page, with two draggable/droppable lists.
- [Making Your React Native Gestures Feel Natural](https://swe.quest/articles/making-your-react-native-gestures-feel-natural-2f601419df32539e.md): Shopify Engineering · 2023-01-20 · Medium · 5 min read · React, Mobile, Frontend
  Draggable UI in React Native feels more natural when gesture end-handling accounts for release velocity, not just finger position.
- [Managing Focus Transitions in Slack](https://swe.quest/articles/managing-focus-transitions-in-slack-0a96821594858656.md): Slack Engineering · 2021-07-13 · Medium · 7 min read · Accessibility, React, Frontend, Design systems
  Slack built FocusTransitionManager, a React Context-based coordinator that lets sender components request focus moves via transitionFocusTo({focusKey}) and receiver components claim them via shouldTransitionFocus, so keyboard and screen-reader users don't lose focus when React re-renders remove the focused element.
- [The uphill climb of making diff lines performant](https://swe.quest/articles/the-uphill-climb-of-making-diff-lines-performant-3c1abf458c8d7ced.md): GitHub Engineering · 2026-04-03 · Medium · 10 min read · Web performance, React, Frontend, Performance engineering
  GitHub rebuilt the React diff-line components in the pull request Files changed tab after large PRs pushed the JavaScript heap past 1 GB, DOM counts above 400,000 and INP to unusable levels.
- [Introducing the Replit Desktop App](https://swe.quest/articles/introducing-the-replit-desktop-app-991be13f80ab4152.md): Replit · 2023-09-14 · Medium · 6 min read · Developer tools, JavaScript, CI/CD, Deployment
  Replit now ships a native desktop app for macOS, Windows and Linux, centered on the IDE workspace, with multiple windows, editor shortcuts the browser would intercept (Cmd/Ctrl+T/W), deep linking and native Chromium devtools.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
