Skip to content
PixiKit

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
NameTypeDefaultDescription
panelsPeekPanelData[]RequiredThe stack of open panels; the last one is on top. Add one to push a related record.
onPanelsChange(ids: string[]) => voidNoneCalled 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.
widthnumberNoneWidth in px, when you hold the state.
defaultWidthnumber440Width in px at first, when the panel holds the state.
onWidthChange(width: number) => voidNoneCalled with the width while it is resized.
resizablebooleantrueShows a handle on the inner edge: drag it, or use the arrow keys, Home and End.
expandablebooleantrueShows a button that grows the top panel to the full width and back.
prevNext{ onPrev?: () => void; onNext?: () => void; label?: string }NoneArrow buttons, and the J (next) and K (previous) keys, to move through records without closing. Shown while one panel is open.
portalbooleantrueIn overlay mode, renders in a portal on the page body and locks page scroll; turn off to fill the nearest positioned parent instead.
childrenReactNodeNoneThe page content that sits beside the panel.
classNamestringNoneExtra classes for the root.

Related