- "v": "A Panel wraps resizable content and can be configured with min/max size constraints and collapsible behavior.\nPanel size props can be in the following formats:\n\nPercentage of the parent Group (0..100)\nPixels\nRelative font units (em, rem)\nViewport relative units (vh, vw)\n\nNumeric values are assumed to be pixels.\nStrings without explicit units are assumed to be percentages (0%..100%).\nPercentages may also be specified as strings ending with \"%\" (e.g. \"33%\")\nPixels may also be specified as strings ending with the unit \"px\".\nOther units should be specified as strings ending with their CSS property units (e.g. 1rem, 50vh)\nPanel elements always include the following attributes:\n<div data-panel data-testid=\"panel-id-prop\" id=\"panel-id-prop\">Test id can be used to narrow selection when unit testing.\nPanel elements must be direct DOM children of their parent Group elements.\n Optional propsclassName?: stringCSS class name.\nClass is applied to nested HTMLDivElement to avoid styles that interfere with Flex layout.\ncollapsedSize?: string | number = \"0%\"Panel size when collapsed; defaults to 0%.\ncollapsible?: boolean = falseThis panel can be collapsed.\nA collapsible panel will collapse when it's size is less than of the specified minSize\ndefaultSize?: string | numberDefault size of Panel within its parent group; default is auto-assigned based on the total number of Panels.\nThis prop is useful for client side rendering but may cause problems when used with server rendering.\nIt is recommended to use the defaultLayout prop of the parent Group instead.\ndisabled?: booleanWhen disabled, a panel cannot be resized either directly or indirectly (by resizing another panel).\nelementRef?: Ref<HTMLDivElement | null>Ref attached to the root HTMLDivElement.\ngroupResizeBehavior?: \"preserve-relative-size\" | \"preserve-pixel-size\" = \"preserve-relative-size\"How should this Panel behave if the parent Group is resized?\nDefaults to preserve-relative-size.\n\npreserve-relative-size: Retain the current relative size (as a percentage of the Group)\npreserve-pixel-size: Retain its current size (in pixels)\n\nPanel min/max size constraints may impact this behavior.\nA Group must contain at least one Panel with preserve-relative-size resize behavior.\nid?: string | numberUniquely identifies this panel within the parent group.\nFalls back to useId when not provided.\nThis prop is used to associate persisted group layouts with the original panel.\nThis value will also be assigned to the data-panel attribute.\nmaxSize?: string | number = \"100%\"Maximum size of Panel within its parent group; defaults to 100%.\nminSize?: string | number = \"0%\"Minimum size of Panel within its parent group; defaults to 0%.\nonResize?: ((panelSize: PanelSize, id: string | number, prevPanelSize: PanelSize | undefined) => void) | undefinedCalled when panel sizes change.\n\npanelSize Panel size (both as a percentage of the parent Group and in pixels)\nid Panel id (if one was provided as a prop)\nprevPanelSize Previous panel size (will be undefined on mount)\n\npanelRef?: Ref<PanelImperativeHandle | null>Exposes the following imperative API:\n\ncollapse(): void\nexpand(): void\ngetSize(): number\nisCollapsed(): boolean\nresize(size: number): void\n\nThe usePanelRef and usePanelCallbackRef hooks are exported for convenience use in TypeScript projects.\nstyle?: CSSPropertiesCSS properties.\nStyle is applied to nested HTMLDivElement to avoid styles that interfere with Flex layout.\n",
0 commit comments