UNPKG

@column-resizer/react

Version:

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Runjuu/column-resizer/blob/main/LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](#contributing) [![code style: prettier](https://i

43 lines (36 loc) 1.86 kB
import { ColumnResizerConfig, ColumnResizer, ColumnSectionConfig, ColumnBarConfig } from '@column-resizer/core'; export * from '@column-resizer/core'; import * as React from 'react'; type UseWatchColumnEventsConfig = { onActivate?: () => void; afterResizing?: () => void; }; type ContainerProps = React.HTMLAttributes<HTMLDivElement> & UseWatchColumnEventsConfig & Partial<ColumnResizerConfig> & { columnResizerRef?: React.RefObject<ColumnResizer | null>; }; declare const Container: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & UseWatchColumnEventsConfig & Partial<ColumnResizerConfig> & { columnResizerRef?: React.RefObject<ColumnResizer | null>; } & React.RefAttributes<HTMLDivElement>>; type SectionProps = React.HTMLAttributes<HTMLDivElement> & ColumnSectionConfig & { onSizeChanged?: (currentSize: number) => void; }; declare const Section: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & ColumnSectionConfig & { onSizeChanged?: (currentSize: number) => void; } & React.RefAttributes<HTMLDivElement>>; type ExpandInteractiveArea = { top?: number; left?: number; right?: number; bottom?: number; }; type BarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'> & Partial<ColumnBarConfig> & { expandInteractiveArea?: ExpandInteractiveArea; onClick?: () => void; onStatusChanged?: (isActive: boolean) => void; }; declare const Bar: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onClick"> & Partial<ColumnBarConfig> & { expandInteractiveArea?: ExpandInteractiveArea; onClick?: () => void; onStatusChanged?: (isActive: boolean) => void; } & React.RefAttributes<HTMLDivElement>>; export { Bar, type BarProps, Container, type ContainerProps, type ExpandInteractiveArea, Section, type SectionProps };