Genesis
@beta

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

Import
Subpath export: @marktiderman/genesis-ui/layout
import { Split } from "@marktiderman/genesis-ui/layout";
Components
Auto-generated from TypeScript source via 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.

PropTypeDefaultDescription
end*ReactNode—Trailing pane — the "detail" half. Renders second when stacked.
start*ReactNode—Leading pane — the "master" half. Renders first when stacked.
atenummdBreakpoint at and above which the panes sit side by side. Default `"md"`.
gap"sm" | "md" | "lg" | "xl" | "none" | "xs" | "2xl" | "3xl" | null—
ratioenum1/3Share of the width the `start` pane takes. Default `"1/3"`.
testIDstring—Stable test/automation selector (emitted as `data-testid`).