Skip to content

Commit 4fe3151

Browse files
committed
docs(Resizable): useResizable's doc lists collapsedLabel among the ref form's options
The ref form's extra options are isReversed, isDisabled, label and collapsedLabel, the option its changeset names. The param text and the dense description now list all four.
1 parent c4c8bf3 commit 4fe3151

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/core/src/Resizable/useResizable.doc.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const docs = {
2222
name: 'handleRef',
2323
type: 'RefObject<HTMLElement | null>',
2424
description:
25-
"The handle's ref, passed first: `useResizable(handleRef, options)` makes the element a window splitter and returns the region's size, collapse state and controls. Give the same ref to ResizeHandle, which reports its element as it mounts, or to a plain element, which the hook reads when its own component renders, so render a plain element there. The options are the params below, plus isReversed, isDisabled and label. Without a ref, the hook takes the params as one configuration object, for one region or several under `regions`, and also returns `props` for ResizeHandle.",
25+
"The handle's ref, passed first: `useResizable(handleRef, options)` makes the element a window splitter and returns the region's size, collapse state and controls. Give the same ref to ResizeHandle, which reports its element as it mounts, or to a plain element, which the hook reads when its own component renders, so render a plain element there. The options are the params below, plus isReversed, isDisabled, label and collapsedLabel. Without a ref, the hook takes the params as one configuration object, for one region or several under `regions`, and also returns `props` for ResizeHandle.",
2626
},
2727
{
2828
name: 'defaultSize',
@@ -182,7 +182,7 @@ export const docsDense = {
182182
'Adds drag-to-resize behavior to layout regions. useResizable(handleRef, options): one region per call, from the handle behind the ref. Config-object form: single-/multi-region configs w/ snap points, collapsible panels, localStorage persistence, cascade resize ordering.',
183183
paramDescriptions: {
184184
handleRef:
185-
"handle's ref, passed first; options = the params below + isReversed, isDisabled, label. Without it: one config object, returns props too.",
185+
"handle's ref, passed first; options = the params below + isReversed, isDisabled, label, collapsedLabel. Without it: one config object, returns props too.",
186186
defaultSize:
187187
'initial pixels, exact N%, or percent(value, {min: pixel(value)}) / percent(value, {max: pixel(value)}); resolves once.',
188188
minSize:

0 commit comments

Comments
 (0)