# Jali

A new layout primitive for React apps. Split any part of your app into adaptive tiling panes; your users arrange them the way they work, on any screen.

*Live demo on the site: Panes fold when room runs out. See [How a layout fits](/learn/fitting).*

      Each 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.

*Live demo on the site: The detail follows the list. See [Following a list](/learn/following).*

      A 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.

*Live demo on the site: The link reopens the layout. See [Keep the layout in the URL](/guides/url-and-routers).*

      With `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.

*Live demo on the site: Every command has a key. See [Commands and keys](/guides/commands-and-keys).*

      Move 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.

- [Data Studio](https://jali.ramizrahman.com/examples/data-studio): A database browser where the person builds the layout: tables, records, related records, SQL queries and charts, each in a pane.
- [Loan review](https://jali.ramizrahman.com/examples/loan-review): An underwriter works through a queue of mortgage applications, one curated page per application.
- [Markets](https://jali.ramizrahman.com/examples/markets): A market terminal for shares, bonds, currencies, indices and crypto, laid out as desks.
- [Studio](https://jali.ramizrahman.com/examples/studio): An audio session editor: a transcript that lights up word by word, a timeline, a mixer and markers, all following one playhead.
- [Trips](https://jali.ramizrahman.com/examples/trips): 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.
- [Handshake](https://jali.ramizrahman.com/examples/handshake): A network lab with the course beside the tools: read packets layer by layer, measure your connection, and learn how it all works.

```ts
import { createJali, row, column, tabs } from "jali-layout";
```

[jali-layout](/reference/core):
      The layout tree and every change to it: fitting, focus, undo, following and unsaved work.

```ts
import { JaliRoot, definePane, usePane } from "jali-layout/react";
```

[jali-layout/react](/reference/react):
      Panes, dividers, tabs, the shelf and the command palette, as components and hooks.

```ts
import "jali-layout/styles.css";
```

[Theming](/guides/theming):
      A default theme read from `--jali-*` tokens, in its own cascade layer, so your Tailwind or CSS wins without `!important`.
