UNPKG

@douyinfe/semi-ui

Version:

A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.

11 lines (10 loc) 724 B
import React, { RefObject } from 'react'; import { ResizeCallback, ResizeEventType, ResizeStartCallback } from '@douyinfe/semi-foundation/lib/cjs/resizable/types'; export interface ResizeContextProps { direction: 'horizontal' | 'vertical'; registerItem: (ref: RefObject<HTMLDivElement>, min: string, max: string, defaultSize: string | number, onResizeStart: ResizeStartCallback, onChange: ResizeCallback, onResizeEnd: ResizeCallback) => number; registerHandler: (ref: RefObject<HTMLDivElement>) => number; notifyResizeStart: (handlerIndex: number, e: MouseEvent | Touch, type: ResizeEventType) => void; getGroupSize: () => number; } export declare const ResizeContext: React.Context<ResizeContextProps>;