A new layout primitive for React apps
Split any part of your app into adaptive tiling panes, from two side by side to over a dozen in rows, columns and tabs. You describe each pane once; your users arrange them the way they work, on any screen.
npm install jali-layoutpnpm add jali-layoutyarn add jali-layoutbun add jali-layoutvp add jali-layoutQuickstart
The quickstart app, in three files
One kind of pane, the note it opens on, and the view. The panes beside the code are that code, running: click a note's button to open the next.
import { definePane } from "jali-layout/react";export const note = definePane("note", { params: { id: Number }, title: ({ id }) => `Note ${id}`, Component: ({ params, openBeside }) => ( <article className="note"> <h3>Note {params.id}</h3> <button onClick={() => openBeside(note({ id: params.id + 1 }))}> Open the next note beside </button> </article> ),});import { createJali } from "jali-layout";import { defaultFeatures } from "jali-layout/features";import { note } from "./note";export const jali = createJali({ panes: [note], layout: note({ id: 1 }), features: defaultFeatures(),});import { createRoot } from "react-dom/client";import { JaliRoot } from "jali-layout/react";import "jali-layout/styles.css";import "./app.css";import { jali } from "./jali";createRoot(document.getElementById("root")!).render(<JaliRoot jali={jali} className="app" />);What you get
What Jali does for you
Panes fold when room runs out
How a layout fitsEach kind of pane declares the narrowest width it works at. Drag the frame's edge: below that width a pane folds into a tab, and it comes back when there is room.
Drag the frame's edge, or watch it fold.
The detail follows the list
Following a listA detail opened from a list follows it: pick another row, and the detail shows that one in the same place. Keep the detail to hold it on one record, and the next row you open appears beside it, to compare.
The link reopens the layout
Keep the layout in the URLWith
urlSync(), every change is written into the address. Open, close or resize a pane and watch it change, then go Back: the layout before comes back from the address alone. Share the link, and the same panes open in the same places.localhost:5173/customers?l=1.WzEseyJpIjoicm9vdCIsInQiOiJyIiwicyI6WzEsMV0sIm4iOlt7ImkiOiJjdXN0b21lciIsInQiOiJwIiwicyI6WzEsMV0sInIiOlsiY3VzdG9tZXIiLHsiaWQiOjd9XX0seyJpIjoibm90ZXMiLCJ0IjoicCIsInMiOlsxLDFdLCJyIjpbIm5vdGVzIix7ImN1c3RvbWVyIjo3fV0sImwiOiJjdXN0b21lciIsImYiOnRydWV9XX1d1 of 1Every command has a key
Commands and keysMove focus, maximise, tuck, close and undo from the keyboard, and rebind or turn off any key. Click into the panes and press one: its key lights up below.
KeysClick one, or press it in the panes above Settings are commands too
A drop on a pane's middleCtrl+KCtrl+DDrag a pane onto another's middle: the two trade places.
Examples
Jali does the layout. The looks are all yours
Keep Jali's default theme, change a few CSS variables, or restyle every surface using any styling system. Your CSS wins over Jali's, no !important needed.
01 / 06Data Studio
A database browser where the person builds the layout: tables, records, related records, SQL queries and charts, each in a pane.
02 / 06Loan review
An underwriter works through a queue of mortgage applications, one curated page per application.
03 / 06Markets
A market terminal for shares, bonds, currencies, indices and crypto, laid out as desks.
04 / 06Studio
An audio session editor: a transcript that lights up word by word, a timeline, a mixer and markers, all following one playhead.
05 / 06Trips
A map-first planner for a week in Thailand: the days, each day's stops and travel, hotels to compare, and the budget, around a big map.
06 / 06Handshake
A network lab with the course beside the tools: read packets layer by layer, measure your connection, and learn how it all works.
← → or 1–6 to switch
One package: jali-layout
One install. The core has no framework, jali-layout/react renders it, and the styles come in a layer of their own.
npm install jali-layoutpnpm add jali-layoutyarn add jali-layoutbun add jali-layoutvp add jali-layoutimport { createJali, row, column, tabs } from "jali-layout";jali-layoutThe layout tree and every change to it: fitting, focus, undo, following and unsaved work.
import { JaliRoot, definePane, usePane } from "jali-layout/react";jali-layout/reactPanes, dividers, tabs, the shelf and the command palette, as components and hooks.
import "jali-layout/styles.css";ThemingA default theme read from
--jali-*tokens, in its own cascade layer, so your Tailwind or CSS wins without!important.









