Split
Split — the master-detail layout: two panes side by side above a breakpoint, stacked below it. ```tsx <Split ratio="1/3" at="lg" gap="lg" start={<ConversationList />} end={<ConversationDetail />} /> ``` The stacking behaviour is the whole reason this is a component rather than two divs: a hand-rolled split usually forgets the small screen, and a hand-rolled split that remembers usually picks a different breakpoint from the one next door. Two panes only, and both are required — a "split" with an optional half is a `Stack`, and a three-pane shell (nav + list + detail) is an application shell, not a layout primitive. Nest a `Split` inside a `Split` if you genuinely need three.
packages/ui/src/components/layout/split.tsx
@marktiderman/genesis-ui/layoutimport { Split } from "@marktiderman/genesis-ui/layout";react-docgen-typescript.Split
Split — the master-detail layout: two panes side by side above a breakpoint, stacked below it. ```tsx <Split ratio="1/3" at="lg" gap="lg" start={<ConversationList />} end={<ConversationDetail />} /> ``` The stacking behaviour is the whole reason this is a component rather than two divs: a hand-rolled split usually forgets the small screen, and a hand-rolled split that remembers usually picks a different breakpoint from the one next door. Two panes only, and both are required — a "split" with an optional half is a `Stack`, and a three-pane shell (nav + list + detail) is an application shell, not a layout primitive. Nest a `Split` inside a `Split` if you genuinely need three.
| Prop | Type | Default | Description |
|---|---|---|---|
| end* | ReactNode | — | Trailing pane — the "detail" half. Renders second when stacked. |
| start* | ReactNode | — | Leading pane — the "master" half. Renders first when stacked. |
| at | enum | md | Breakpoint at and above which the panes sit side by side. Default `"md"`. |
| gap | "sm" | "md" | "lg" | "xl" | "none" | "xs" | "2xl" | "3xl" | null | — | |
| ratio | enum | 1/3 | Share of the width the `start` pane takes. Default `"1/3"`. |
| testID | string | — | Stable test/automation selector (emitted as `data-testid`). |