NeahNew/node_modules/react-resizable-panels/dist/declarations/src/PanelGroup.d.ts
2025-05-03 14:17:46 +02:00

39 lines
1.5 KiB
TypeScript

import { Direction } from "./types.js";
import { CSSProperties, HTMLAttributes, PropsWithChildren } from "./vendor/react.js";
export type ImperativePanelGroupHandle = {
getId: () => string;
getLayout: () => number[];
setLayout: (layout: number[]) => void;
};
export type PanelGroupStorage = {
getItem(name: string): string | null;
setItem(name: string, value: string): void;
};
export type PanelGroupOnLayout = (layout: number[]) => void;
export type PanelGroupProps = Omit<HTMLAttributes<keyof HTMLElementTagNameMap>, "id"> & PropsWithChildren<{
autoSaveId?: string | null;
className?: string;
direction: Direction;
id?: string | null;
keyboardResizeBy?: number | null;
onLayout?: PanelGroupOnLayout | null;
storage?: PanelGroupStorage;
style?: CSSProperties;
tagName?: keyof HTMLElementTagNameMap;
dir?: "auto" | "ltr" | "rtl" | undefined;
}>;
export declare const PanelGroup: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<keyof HTMLElementTagNameMap>, "id"> & {
autoSaveId?: string | null | undefined;
className?: string | undefined;
direction: Direction;
id?: string | null | undefined;
keyboardResizeBy?: number | null | undefined;
onLayout?: PanelGroupOnLayout | null | undefined;
storage?: PanelGroupStorage | undefined;
style?: CSSProperties | undefined;
tagName?: keyof HTMLElementTagNameMap | undefined;
dir?: "auto" | "ltr" | "rtl" | undefined;
} & {
children?: import("react").ReactNode;
} & import("react").RefAttributes<ImperativePanelGroupHandle>>;