Side panels
UnderstoryUsage
The import, then a use to start from. Both copy as they are.
Import
import { PanelResizeSeparator } from "@/components/editor/PanelResizeSeparator";When to use
Use it for
- Detail views that open beside a list without leaving it: a record, a log, the agent.
AnimatedSidepanelContainerslides the panel in;PanelResizeSeparatorresizes it by pointer or keyboard.- The list stays usable while the panel is open, and its selection follows the open record.
Avoid
- A side panel for a whole flow: give it a page.
- A panel that blocks the list behind it: that's a
Dialog.
Accessibility
Checks
PanelResizeSeparatortakes Tab, then the arrow keys, Home and End, and announces its width.- Escape closes the panel and returns focus to the row that opened it.
API
Read from each component's stories, the same source as COMPONENTS.md, and kept in step by check:design-system.
AnimatedSidepanelContainer
COMPONENTS.md.PanelResizeSeparator
Keyboard- and pointer-operable hit target for a column resize. Tab to it and use the arrow keys, Home, or End — the width readout below tracks `aria-valuenow`.
Its stories don't declareargTypes, so no props are listed. The variants show its states.Also exportsCOLLAPSE_OVERSHOOT_PX
VariantsLeftEdgeRightEdgeCollapsesPastMinimum