Peek Panel
A detail panel for a record. It opens beside the page, which reflows, or floats over it with a light backdrop. Opening a related record pushes another panel; the ones underneath stay as dimmed edges you can click to go back. It resizes, expands, has sliding tabs and moves through records with J and K.
pixikit.com/docs/app-ui/overlays/peek-panel
Customize
Mode
Side
Default width420px
Resizable
Expandable
Portal
Props
13| Name | Type | Default | Description |
|---|---|---|---|
panels | PeekPanelData[] | Required | The stack of open panels; the last one is on top. Add one to push a related record. |
onPanelsChange | (ids: string[]) => void | None | Called with the ids that should stay open after Back, Escape, a click on an edge or a close. Update `panels` to match. |
mode | "overlay" | "docked" | "overlay" | `docked` takes room beside the page and the page reflows; `overlay` floats above it with a light backdrop. |
side | "right" | "left" | "right" | The edge the panels sit on. |
width | number | None | Width in px, when you hold the state. |
defaultWidth | number | 440 | Width in px at first, when the panel holds the state. |
onWidthChange | (width: number) => void | None | Called with the width while it is resized. |
resizable | boolean | true | Shows a handle on the inner edge: drag it, or use the arrow keys, Home and End. |
expandable | boolean | true | Shows a button that grows the top panel to the full width and back. |
prevNext | { onPrev?: () => void; onNext?: () => void; label?: string } | None | Arrow buttons, and the J (next) and K (previous) keys, to move through records without closing. Shown while one panel is open. |
portal | boolean | true | In overlay mode, renders in a portal on the page body and locks page scroll; turn off to fill the nearest positioned parent instead. |
children | ReactNode | None | The page content that sits beside the panel. |
className | string | None | Extra classes for the root. |