Side panels

Understory
AnimatedSidepanelContainer and PanelResizeSeparator for detail views.

Usage

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.
  • AnimatedSidepanelContainer slides the panel in; PanelResizeSeparator resizes 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

  • PanelResizeSeparator takes 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

No story yet, so its props aren't listed. Read the source, and add a story: it documents the API here and in 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 declare argTypes, so no props are listed. The variants show its states.
Also exportsCOLLAPSE_OVERSHOOT_PX
VariantsLeftEdgeRightEdgeCollapsesPastMinimum

Keep going