An open source design system that's fully customizable and agent ready
TypeScript
docs(Resizable): the close-on-lift docs name every pointer and the key step (#10635)
Christopher Chedeau7c3d28a628b0
diff --git a/.changeset/resizable-collapsed-size-jsdoc.md b/.changeset/resizable-collapsed-size-jsdoc.mdnew file mode 100644index 0000000000..c1e6feaa79--- /dev/null+++ b/.changeset/resizable-collapsed-size-jsdoc.md@@ -0,0 +1,7 @@+---+'@astryxdesign/core': patch+---++[docs] The `collapsible`, `collapsedSize`, `isCollapsed` and `onCollapseChange` descriptions in the Resizable and `useResizable` docs name what collapses a region, a lift or a key step under the collapsed size rather than a drag alone, and what reports a collapse change.++@vjeuxdiff --git a/apps/storybook/stories/Resizable.stories.tsx b/apps/storybook/stories/Resizable.stories.tsxindex f9eedc8358..a4836c57b1 100644--- a/apps/storybook/stories/Resizable.stories.tsx+++ b/apps/storybook/stories/Resizable.stories.tsx@@ -138,7 +138,7 @@ export const VerticalSplit: Story = {},};-/** Collapsible sidebar — drag past threshold or double-click to collapse. */+/** Collapsible sidebar: a lift or a key step past the threshold, or a double-click, collapses it. */export const Collapsible: Story = {render: () => {const resizable = useResizable({diff --git a/docs/specs/components/Resizable/Resizable.spec.md b/docs/specs/components/Resizable/Resizable.spec.mdindex d42fecf591..91a3f8fd8e 100644--- a/docs/specs/components/Resizable/Resizable.spec.md+++ b/docs/specs/components/Resizable/Resizable.spec.md@@ -126,30 +126,30 @@ Consumer migration instructions belong in consumer docs and release notes.## Public concepts-| Concept | Closed values or states | Meaning | Availability by variant/orientation/state | Default | Owner | Stability | Invalid-value behavior |-| ---------------- | ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- | ---------------------------------------------------- | --------------------- | --------- | ------------------------------------------------------------------------- |-| Size value | pixel number; exact `Npx`; exact `N%`; `pixel()`; `percent(value, {min} or {max})` | A size or bound in pixels or a percentage of the container, or of the viewport without a `containerRef`. | `defaultSize`, `minSize`, `maxSize` | `defaultSize` 250, `minSize` 50, `maxSize` unbounded | `component:Resizable` | Stable | Invalid strings and descriptors fail runtime validation (`spec:AST-010`). |-| Collapse | collapsible; collapsed; expanded | A collapsible region collapses to 0 when a drag's lift is below `collapsedSize`, or flicked to rest below it, and restores its previous size. | `collapsible` | not collapsible; `collapsedSize` 40 (drag threshold) | `component:Resizable` | Stable | — |-| Snaps | pixel list | The only positions the region rests on, for drag, keyboard, and `resize()`. | Optional | none | `component:Resizable` | Stable | — |-| Persistence | `autoSaveId` | Remembers the pixel size across sessions. | Optional | none | `component:Resizable` | Stable | — |-| Axis | `horizontal`; `vertical` | The axis the region resizes along. | Handle and hook | `horizontal` | `component:Resizable` | Stable | Closed union. |-| Handle placement | `position` `inline`, `overlay`; `isReversed`; `pillPlacement` `auto`, `start`, `center`, `end` | Whether the Handle takes layout space or overlays its parent; which side grows; where the pill sits. | Handle | `inline`; not reversed; `auto` | `component:Resizable` | Stable | Closed union. |-| Handle state | enabled; disabled; divider; always-visible pill | Interaction and paint options. | Handle | enabled; no divider; pill visible | `component:Resizable` | Stable | — |-| Grip content | caller `children` | Replaces the Grip pill. | Handle | Grip pill | caller | Stable | — |+| Concept | Closed values or states | Meaning | Availability by variant/orientation/state | Default | Owner | Stability | Invalid-value behavior |+| ---------------- | ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- | -------------------------------------------------------- | --------------------- | --------- | ------------------------------------------------------------------------- |+| Size value | pixel number; exact `Npx`; exact `N%`; `pixel()`; `percent(value, {min} or {max})` | A size or bound in pixels or a percentage of the container, or of the viewport without a `containerRef`. | `defaultSize`, `minSize`, `maxSize` | `defaultSize` 250, `minSize` 50, `maxSize` unbounded | `component:Resizable` | Stable | Invalid strings and descriptors fail runtime validation (`spec:AST-010`). |+| Collapse | collapsible; collapsed; expanded | A collapsible region collapses to 0 when a drag's lift is below `collapsedSize`, a flick comes to rest below it, or a key step ends below it, and restores its previous size. | `collapsible` | not collapsible; `collapsedSize` 40 (collapse threshold) | `component:Resizable` | Stable | — |+| Snaps | pixel list | The only positions the region rests on, for drag, keyboard, and `resize()`. | Optional | none | `component:Resizable` | Stable | — |+| Persistence | `autoSaveId` | Remembers the pixel size across sessions. | Optional | none | `component:Resizable` | Stable | — |+| Axis | `horizontal`; `vertical` | The axis the region resizes along. | Handle and hook | `horizontal` | `component:Resizable` | Stable | Closed union. |+| Handle placement | `position` `inline`, `overlay`; `isReversed`; `pillPlacement` `auto`, `start`, `center`, `end` | Whether the Handle takes layout space or overlays its parent; which side grows; where the pill sits. | Handle | `inline`; not reversed; `auto` | `component:Resizable` | Stable | Closed union. |+| Handle state | enabled; disabled; divider; always-visible pill | Interaction and paint options. | Handle | enabled; no divider; pill visible | `component:Resizable` | Stable | — |+| Grip content | caller `children` | Replaces the Grip pill. | Handle | Grip pill | caller | Stable | — |## Behavioral and layout contract-| ID | Invariant | Basis |-| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| FR1 | ResizeHandle renders one focusable Handle and one enlarged Grab zone (a `--spacing-4` strip on the resize axis); the default render also contains a Grip pill, and caller `children` replace the pill. The grab zone is centred on the Handle for every `pillPlacement`, and the painted pill is its own grab target. On a pane too short for the full strip, the zone shrinks so the pane keeps at least half of itself. A pill shown only on hover also takes the pointer across the gap between it and the Grab zone, never past the pill's far side. | Current source, docs, tests, and an owner ruling |-| FR2 | The Handle carries `resize-handle`, the Grip pill carries `resize-handle-pill`, and the Grab zone carries no public target. | Current source and docs |-| FR3 | Pointer drag, keyboard, double-click collapse, snapping, persistence, reversal, and size behavior are owned by ResizeHandle and useResizable; dragging under right-to-left inverts the pointer delta so the divider follows the pointer. A disabled Handle ignores pointer and keyboard input and exposes `aria-disabled`, and keeps its tab stop (`spec:AST-085` FR1). With `autoSaveId`, storage holds the last settled size and receives the final size once when a drag ends, cancels, or unmounts. | Current source, docs, and tests |-| FR4 | The Handle reflects the documented `direction` visual state on its target (`architecture:component-theming-surface` INV6). Implementation gap: it reflects no `direction` (Current-state impact). | Current source and docs |-| FR5 | A `percent(value, {min: pixel(value)})` or `percent(value, {max: pixel(value)})` resolves against one basis — the supplied container, or the viewport when no `containerRef` is given (`spec:AST-010` FR1, FR2); as a default it selects pixels once, and as a bound it stays live and clamps the selected pixels. A descriptor with both or neither bound is invalid. Selected state, persistence, callbacks, paint, and ARIA are pixels. | `spec:AST-010`; current source and tests |-| FR6 | `minSize` and `maxSize` are the bound props; numeric values are pixels. When resolved bounds conflict, the maximum wins. | `spec:AST-010`; current source and tests |-| FR7 | `ref`, DOM, data, ARIA, and event props reach the Handle, and a caller's explicit `role`, ARIA attribute, or `tabIndex` reaches it as given; a caller `onKeyDown` runs before the Handle's own key handling; caller `onFocus`, `onBlur`, and `onDoubleClick` compose with the Handle's own focus tracking and double-click collapse (`architecture:public-component-api` INV5, INV7); `xstyle` and `className` compose after component styles, and `style` is not accepted. Implementation gap: caller `onFocus`, `onBlur`, and `onDoubleClick` replace the Handle's own handlers (Current-state impact). | Current source; `architecture:public-component-api` INV5–INV8 |-| FR8 | When a region collapses or opens, its pane slides by `spec:AST-105` FR9's edge reveal when a LayoutPanel renders it (`component:LayoutPanel` FR7): the resize controller measures the pane's box before and after the collapse state commits, before its subscribers hear of it, and the pane's edge facing its ResizeHandle, read from the region's direction and reversal, moves with the content on that edge's side on one motion. Every collapse and open plays it: `collapse()`, `expand()`, a resize out of collapse, Enter, a double-click, the grow arrow, a controlled `isCollapsed` change, and a lift that closes the pane. A drag that reopens a collapsed pane plays nothing, because the pointer drives the edge; a resize that neither collapses nor opens, and the first render, play nothing. A pane the caller renders at the hook's size alone, and a LayoutPanel given the configuration-object form, a hand-built `ResizableProps` object that `useResizable` did not return passed through its `resizable`, show no slide; the hook's own `props` passed through `resizable` do slide. No prop, option or return member is added. The reported size, persistence and the Handle's ARIA values keep to the limits. Focus inside a collapsing pane follows `component:LayoutPanel` AR2. A ResizeHandle given the props holds a panel at the hook's size collapsed. When a LayoutPanel renders the pane, a pointer pulled past the maximum, or under the minimum, moves the Handle past the limit. Core's shared rubber band keeps that travel to about 8 px (`spec:AST-094` FR5). The rubber band's extra length does not change the panes' widths; it extends the handle and overlaps the content a little. (Owner direction, Nov 6 2026 (Cindy): "the extra length of the rubber band should ideally not affect the widths of the content but be kind of treated as just extending the handle and overlapping a bit".) After the lift the Handle springs back to the limit on `springs.settle` from the release velocity. The rubber band is a drag's give for every pointer: mouse, trackpad, pen and finger. An arrow key at a limit does not band. A pane rendered at the hook's size alone stops at the limit (`spec:AST-094` FR5). A drag never collapses the pane mid-way: only its lift closes the pane, when the pointer, or the rest its release velocity projects, is past `collapsedSize`, and that close slides on `springs.settle` from the release velocity. Any other lift under the minimum returns to the minimum. A press on the Handle where it shows mid-slide takes the Handle where it shows. During a spring-back the Handle follows the pointer 1:1 back toward the limit and over the overshoot it held, then resists again. During a close the pane opens at the size it shows. Between snap points, the edge then follows the pointer to the next snap point; a lift before that lands on the nearest one. | `spec:AST-105` FR9; `component:LayoutPanel` FR7, AR2; Owner direction, Nov 5 2026 (Cindy): rubber band at the limits on both sides, so hitting a limit doesn't read as a bug; Owner direction, Nov 6 2026 (Cindy): rubber-band travel for a panel resize is at most about 8 px; the panel closes only on release; Specs decision, Nov 5 2026: snap-to-close decided on lift, with resistance below the minimum (the iPadOS Split View model); Specs decision, Nov 6 2026: the band is a drag's give for every pointer, and an arrow key at a limit does not band |-| FR9 | `resizable` takes useResizable's output directly; the region's `props` is still accepted (owner decision, 2026-11-04). Components take the hook's value through the `resizable` slot prop (owner decision, 2026-11-04): LayoutPanel (`component:LayoutPanel` FR8), ResizeHandle, and SideNav (`component:SideNav` FR7). Any other element can use the hook's `size`. | `architecture:public-component-api` INV21, INV22 |+| ID | Invariant | Basis |+| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| FR1 | ResizeHandle renders one focusable Handle and one enlarged Grab zone (a `--spacing-4` strip on the resize axis); the default render also contains a Grip pill, and caller `children` replace the pill. The grab zone is centred on the Handle for every `pillPlacement`, and the painted pill is its own grab target. On a pane too short for the full strip, the zone shrinks so the pane keeps at least half of itself. A pill shown only on hover also takes the pointer across the gap between it and the Grab zone, never past the pill's far side. | Current source, docs, tests, and an owner ruling |+| FR2 | The Handle carries `resize-handle`, the Grip pill carries `resize-handle-pill`, and the Grab zone carries no public target. | Current source and docs |+| FR3 | Pointer drag, keyboard, double-click collapse, snapping, persistence, reversal, and size behavior are owned by ResizeHandle and useResizable; dragging under right-to-left inverts the pointer delta so the divider follows the pointer. A disabled Handle ignores pointer and keyboard input and exposes `aria-disabled`, and keeps its tab stop (`spec:AST-085` FR1). With `autoSaveId`, storage holds the last settled size and receives the final size once when a drag ends, cancels, or unmounts. | Current source, docs, and tests |+| FR4 | The Handle reflects the documented `direction` visual state on its target (`architecture:component-theming-surface` INV6). Implementation gap: it reflects no `direction` (Current-state impact). | Current source and docs |+| FR5 | A `percent(value, {min: pixel(value)})` or `percent(value, {max: pixel(value)})` resolves against one basis — the supplied container, or the viewport when no `containerRef` is given (`spec:AST-010` FR1, FR2); as a default it selects pixels once, and as a bound it stays live and clamps the selected pixels. A descriptor with both or neither bound is invalid. Selected state, persistence, callbacks, paint, and ARIA are pixels. | `spec:AST-010`; current source and tests |+| FR6 | `minSize` and `maxSize` are the bound props; numeric values are pixels. When resolved bounds conflict, the maximum wins. | `spec:AST-010`; current source and tests |+| FR7 | `ref`, DOM, data, ARIA, and event props reach the Handle, and a caller's explicit `role`, ARIA attribute, or `tabIndex` reaches it as given; a caller `onKeyDown` runs before the Handle's own key handling; caller `onFocus`, `onBlur`, and `onDoubleClick` compose with the Handle's own focus tracking and double-click collapse (`architecture:public-component-api` INV5, INV7); `xstyle` and `className` compose after component styles, and `style` is not accepted. Implementation gap: caller `onFocus`, `onBlur`, and `onDoubleClick` replace the Handle's own handlers (Current-state impact). | Current source; `architecture:public-component-api` INV5–INV8 |+| FR8 | When a region collapses or opens, its pane slides by `spec:AST-105` FR9's edge reveal when a LayoutPanel renders it (`component:LayoutPanel` FR7): the resize controller measures the pane's box before and after the collapse state commits, before its subscribers hear of it, and the pane's edge facing its ResizeHandle, read from the region's direction and reversal, moves with the content on that edge's side on one motion. Every collapse and open plays it: `collapse()`, `expand()`, a resize out of collapse, Enter, a double-click, the grow arrow, a controlled `isCollapsed` change, and a lift that closes the pane. A drag that reopens a collapsed pane plays nothing, because the pointer drives the edge; a resize that neither collapses nor opens, and the first render, play nothing. A pane the caller renders at the hook's size alone, and a LayoutPanel given the configuration-object form, a hand-built `ResizableProps` object that `useResizable` did not return passed through its `resizable`, show no slide; the hook's own `props` passed through `resizable` do slide. No prop, option or return member is added. The reported size, persistence and the Handle's ARIA values keep to the limits. Focus inside a collapsing pane follows `component:LayoutPanel` AR2. A ResizeHandle given the props holds a panel at the hook's size collapsed. When a LayoutPanel renders the pane, a pointer pulled past the maximum, or under the minimum, moves the Handle past the limit. Core's shared rubber band keeps that travel to about 8 px (`spec:AST-094` FR5). The rubber band's extra length does not change the panes' widths; it extends the handle and overlaps the content a little. (Owner direction, Nov 6 2026 (Cindy): "the extra length of the rubber band should ideally not affect the widths of the content but be kind of treated as just extending the handle and overlapping a bit".) After the lift the Handle springs back to the limit on `springs.settle` from the release velocity. The rubber band is a drag's give for every pointer: mouse, trackpad, pen and finger. An arrow key at a limit does not band. A pane rendered at the hook's size alone stops at the limit (`spec:AST-094` FR5). A drag never collapses the pane mid-way: only its lift closes the pane, when the pointer, or the rest its release velocity projects, is past `collapsedSize`, and that close slides on `springs.settle` from the release velocity. Any other lift under the minimum returns to the minimum. A press on the Handle where it shows mid-slide takes the Handle where it shows. During a spring-back the Handle follows the pointer 1:1 back toward the limit and over the overshoot it held, then resists again. During a close the pane opens at the size it shows. Between snap points, the edge then follows the pointer to the next snap point; a lift before that lands on the nearest one. | `spec:AST-105` FR9; `component:LayoutPanel` FR7, AR2; Owner direction, Nov 5 2026 (Cindy): "I might expect a bit of rubber banding" when a drag hits a limit, and on the side that does not drag to close, "after that its hard to tell when we hit the limit"; Owner direction, Nov 6 2026 (Cindy): "allow less travel on the rubber band for the resize like probably no more than 8px or so"; "it should maybe close on release rather than during the drag"; Specs decision, Nov 5 2026: snap-to-close decided on lift, with resistance below the minimum (the iPadOS Split View model); Specs decision, Nov 6 2026: the band is a drag's give for every pointer, and an arrow key at a limit does not band; Spec owners' ruling, Nov 7 2026: close-on-lift and the band apply to every pointer, one model with AST-094 FR43 and AST-105 FR5; no pointer gates the close |+| FR9 | `resizable` takes useResizable's output directly; the region's `props` is still accepted (owner decision, 2026-11-04). Components take the hook's value through the `resizable` slot prop (owner decision, 2026-11-04): LayoutPanel (`component:LayoutPanel` FR8), ResizeHandle, and SideNav (`component:SideNav` FR7). Any other element can use the hook's `size`. | `architecture:public-component-api` INV21, INV22 |### Allowed variationdiff --git a/packages/core/src/Resizable/Resizable.doc.mjs b/packages/core/src/Resizable/Resizable.doc.mjsindex af2d813ca4..f873e6957d 100644--- a/packages/core/src/Resizable/Resizable.doc.mjs+++ b/packages/core/src/Resizable/Resizable.doc.mjs@@ -185,7 +185,7 @@ export default function InvoicePreviewSplit() {name: 'collapsedSize',type: 'number',description:- 'Pixel threshold under which the lift of a drag collapses the region.',+ 'Pixel threshold under which a lift or a key step collapses the region.',default: '40',},{@@ -326,7 +326,7 @@ export const docsDense = {maxSize:'live maximum: pixels, exact N%, or percent(value, {min: pixel(value)}) / percent(value, {max: pixel(value)})',collapsible: 'region can collapse to size 0?',- collapsedSize: 'px threshold under which a drag lift collapses',+ collapsedSize: 'px threshold under which a lift or key step collapses',snaps: 'px values to snap to during resize',shrinkOrder: 'cascade priority: lower number shrinks first',autoSaveId: 'key for persisting sizes + collapse state to localStorage',diff --git a/packages/core/src/Resizable/createResizable.ts b/packages/core/src/Resizable/createResizable.tsindex 5245b79472..a861bbaf69 100644--- a/packages/core/src/Resizable/createResizable.ts+++ b/packages/core/src/Resizable/createResizable.ts@@ -90,7 +90,10 @@ export interface CreateResizableOptions {snaps?: number[];/** Whether the region can collapse to 0. @default false */collapsible?: boolean;- /** Size in px under which a drag collapses the region. @default 40 */+ /**+ * Size in px under which a lift or a key step collapses the region.+ * @default 40+ */collapsedSize?: number;/*** The element a percentage is a share of, read as `containerRef.current`.diff --git a/packages/core/src/Resizable/useResizable.doc.mjs b/packages/core/src/Resizable/useResizable.doc.mjsindex ff84a385d9..e60b27ea15 100644--- a/packages/core/src/Resizable/useResizable.doc.mjs+++ b/packages/core/src/Resizable/useResizable.doc.mjs@@ -56,7 +56,7 @@ export const docs = {name: 'collapsible',type: 'boolean',description:- 'Whether a drag lifted below the collapsed threshold collapses the region to zero.',+ 'Whether a lift or a key step below the collapsed threshold collapses the region to zero.',default: 'false',},{@@ -81,13 +81,13 @@ export const docs = {name: 'isCollapsed',type: 'boolean',description:- 'Controlled collapse state. collapse(), expand() and a drag past the threshold then report through onCollapseChange instead of changing state internally.',+ 'Controlled collapse state. collapse(), expand(), a lift or a key step past the threshold, and a drag that reopens the region then report through onCollapseChange instead of changing state internally.',},{name: 'onCollapseChange',type: '(isCollapsed: boolean) => void',description:- 'Called once per collapse state change, via drag or programmatically.',+ 'Called once per collapse state change: a lift or a key step that closes the region, a drag or a key that reopens it, Enter, a double-click, or a call to collapse(), expand() or resize().',},],returns: [@@ -179,14 +179,14 @@ export const docsDense = {containerRef: 'the element a percentage is a share of.',direction: 'which axis to resize along.',collapsible:- 'whether a drag lifted below collapsed threshold collapses region to zero.',+ 'whether a lift or key step below collapsed threshold collapses region to zero.',snaps: 'px values to snap to during drag.',autoSaveId:'key for localStorage persistence of size + collapse state across sessions.',defaultIsCollapsed:'initial collapse state (uncontrolled); persisted entry wins.',isCollapsed:- 'controlled collapse state; collapse()/expand()/drag report instead of mutating.',+ 'controlled collapse state; collapse()/expand()/lift/key step/reopening drag report instead of mutating.',onCollapseChange: 'called once per collapse state change.',},returnDescriptions: {diff --git a/packages/core/src/Resizable/useResizable.ts b/packages/core/src/Resizable/useResizable.tsindex 6cdf343a2f..c7299d48e7 100644--- a/packages/core/src/Resizable/useResizable.ts+++ b/packages/core/src/Resizable/useResizable.ts@@ -104,7 +104,11 @@ export interface ResizableConfig {defaultIsCollapsed?: boolean;/** Controlled collapse state. Pair with `onCollapseChange`. */isCollapsed?: boolean;- /** Called when collapse state changes (via drag or programmatic). */+ /**+ * Called once per collapse state change. A lift or a key step closes the+ * region, and a drag or a key reopens it. Enter, a double-click,+ * `collapse()`, `expand()` and `resize()` report too.+ */onCollapseChange?: (isCollapsed: boolean) => void;}@@ -134,14 +138,19 @@ export interface UseResizableSingleOptions {*/defaultIsCollapsed?: boolean;/**- * Controlled collapse state. When set, the caller owns collapse:- * `collapse()`, `expand()` and a drag lifted past the collapse threshold- * report through `onCollapseChange` instead of changing state here.+ * Controlled collapse state. When set, the caller owns collapse, and the+ * hook reports instead of changing its state. `collapse()`, `expand()`, a+ * lift or a key step past the collapse threshold, and a drag that reopens+ * the region report through `onCollapseChange`.*/isCollapsed?: boolean;/** Called when size changes during drag. */onSizeChange?: (size: number) => void;- /** Called when collapse state changes (via drag or programmatic). */+ /**+ * Called once per collapse state change. A lift or a key step closes the+ * region, and a drag or a key reopens it. Enter, a double-click,+ * `collapse()`, `expand()` and `resize()` report too.+ */onCollapseChange?: (isCollapsed: boolean) => void;}