react-resizable-panels 4.12.0 → 4.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -289,6 +289,11 @@ export declare type PanelProps = BasePanelAttributes & {
|
|
|
289
289
|
/**
|
|
290
290
|
* Default size of Panel within its parent group; default is auto-assigned based on the total number of Panels.
|
|
291
291
|
*
|
|
292
|
+
* ℹ️ Interpretation rules:
|
|
293
|
+
* - Numbers are interpreted as pixels (e.g. `defaultSize={200}` is 200 pixels)
|
|
294
|
+
* - Strings without explicit units are interpreted as percentage (e.g. `defaultSize="50"` is 50 percent)
|
|
295
|
+
* - Use explicit units (e.g. "px", "%", "em", "rem", "vh", or "vw") to change interpretation
|
|
296
|
+
*
|
|
292
297
|
* ⚠️ Percentage based sizes may cause slight layout shift when server-rendering.
|
|
293
298
|
* For more information see the documentation.
|
|
294
299
|
*/
|
|
@@ -323,11 +328,21 @@ export declare type PanelProps = BasePanelAttributes & {
|
|
|
323
328
|
*/
|
|
324
329
|
id?: string | number | undefined;
|
|
325
330
|
/**
|
|
326
|
-
* Maximum size of Panel within its parent group; defaults to 100
|
|
331
|
+
* Maximum size of Panel within its parent group; defaults to `"100%"`.
|
|
332
|
+
*
|
|
333
|
+
* ℹ️ Interpretation rules:
|
|
334
|
+
* - Numbers are interpreted as pixels (e.g. `maxSize={200}` is 200 pixels)
|
|
335
|
+
* - Strings without explicit units are interpreted as percentage (e.g. `maxSize="50"` is 50 percent)
|
|
336
|
+
* - Use explicit units (e.g. "px", "%", "em", "rem", "vh", or "vw") to change interpretation
|
|
327
337
|
*/
|
|
328
338
|
maxSize?: number | string | undefined;
|
|
329
339
|
/**
|
|
330
340
|
* Minimum size of Panel within its parent group; defaults to 0%.
|
|
341
|
+
*
|
|
342
|
+
* ℹ️ Interpretation rules:
|
|
343
|
+
* - Numbers are interpreted as pixels (e.g. `minSize={200}` is 200 pixels)
|
|
344
|
+
* - Strings without explicit units are interpreted as percentage (e.g. `minSize="50"` is 50 percent)
|
|
345
|
+
* - Use explicit units (e.g. "px", "%", "em", "rem", "vh", or "vw") to change interpretation
|
|
331
346
|
*/
|
|
332
347
|
minSize?: number | string | undefined;
|
|
333
348
|
/**
|