egui_stack: docking for egui
egui_stack continues egui_dock: a docking system for egui, originally
created by @lain-dono and developed for years by
Adam Gąsior (@Adanos020), later maintained by @anhosh, with
many contributors. Its full history is kept here, so every commit keeps its author. Thanks to all of them.
Try it in your browser: the demo (demo/), built for the web
from this repository's main branch.

It is a divergent fork: the API starts as egui_dock 0.21.1's, moved to egui 0.37, and will grow to hold more of an
application's panel management (stackable sections, toolbars). See NOTICE and the
changelog.
What differs from egui_dock:
- The crate is
egui_stack;use egui_dock::becomesuse egui_stack::. - egui 0.37.
- No particular policy on AI-assisted contributions: they are reviewed like any other, under the same rules (see CONTRIBUTING.md).
Features
- Opening and closing tabs.
- Moving tabs between nodes and resizing.
- Dragging tabs out into new
eguiwindows. - Highly customizable look and feel: a
Style, or aDockPainterthat paints the tabs, tab bars, separators and drop overlay itself. - High degree of control over behaviour of the whole dock area and of individual tabs.
- Manipulating tabs and dock layout from code.
- Collapsible sections stacked in a panel (
sections::Sections): fold, resize, pull as a block, remembered by name, painted by the sameDockPainter.
Quick start
Add egui and egui_stack to your project's dependencies. It is not on crates.io yet; until then, use Git:
[]
= "0.37"
= { = "https://github.com/quazardous/egui_stack" }
Then proceed by setting up egui, following its quick start guide. Once
that's done, you can start using egui_stack; its documentation builds with cargo doc --open.
Examples
The Git repository of this crate contains some example applications demonstrating how to achieve certain effects. You
can find all of them in the examples folder.
You can run them with Cargo from the crate's root directory, for example: cargo run --example hello.
Demo
The demo, a separate crate in demo/, runs natively with cargo run -p egui_stack_demo and in the browser:
demo/build-web.sh builds it into demo/dist. The online demo
is rebuilt on each push to the main branch.
Alternatives
egui_tiles
It's a library aiming to achieve similar goals in addition to being more flexible and customizable.
Both divide a node into more than two children: since 0.24, egui_stack's Linear and Grid containers
hold any number of children, in a row, a column or a grid.