UNPKG

react-split-pane

Version:

React split-pane component with hooks and TypeScript

27 lines 753 B
import type { PaneProps } from '../types'; /** * A pane component that must be used as a direct child of SplitPane. * * Panes can have size constraints and can be either controlled (with `size`) * or uncontrolled (with `defaultSize`). * * @example * ```tsx * // Uncontrolled with constraints * <Pane minSize="100px" maxSize="500px" defaultSize="300px"> * Content here * </Pane> * * // Controlled * <Pane size={sizes[0]} minSize={100}> * Content here * </Pane> * * // Percentage-based sizing * <Pane defaultSize="25%" minSize="10%"> * Sidebar * </Pane> * ``` */ export declare const Pane: import("react").ForwardRefExoticComponent<PaneProps & import("react").RefAttributes<HTMLDivElement>>; //# sourceMappingURL=Pane.d.ts.map