MasterDetail
layoutsList and detail columns that scroll independently, becoming one pane at a time with a sticky back header when the component itself is narrow.
Mail inbox
Drag the preview edge under 40rem: the list and the message become two pages with a back header, and focus returns to the opened row.
Inbox · 2 unread
Select a message to read it.
Phone regime in a narrow box
The breakpoint is the component width, not the viewport: boxed at 22rem it is one pane at a time even on a desktop.
Gap and divider
gap spaces the columns and divider="none" drops the seam so each pane can be its own Card; the default divider="border" draws the seam.
worker-02
eu-west-1CPU 87% · 1930 MB · up 3 days
Detail column
Empty folder
An EmptyState in the list and the empty snippet in the detail column while nothing is selected.
No message selected
Props
| Prop | Type | Default | Description |
|---|---|---|---|
list required | Snippet | — | |
detail required | Snippet | — | |
detailHeader | Snippet | — | Rendered above the detail; on mobile it shares the sticky header with the back button. |
empty | Snippet | — | Desktop placeholder in the detail column while nothing is selected. |
listWidth | string | '17rem' | |
breakpoint | string | '48rem' | Own-width threshold (px/em/rem) below which the panes become two pages. |
gap | string | '0' | Space between the two columns (any CSS length). |
divider | 'border' | 'none' | 'border' | Seam between the panes. |
selected | boolean | false | |
onback | () => void | — | |
backLabel | string | 'Back' | |
listLabel | string | 'List' | |
class | string | '' | |
style | string | — |