@types/react-resizable
- Version 3.0.8
- Published
- 7.36 kB
- 1 dependency
- MIT license
Install
npm i @types/react-resizable
yarn add @types/react-resizable
pnpm add @types/react-resizable
Overview
TypeScript definitions for react-resizable
Index
Classes
class Resizable
class Resizable extends React.Component<ResizableProps, ResizableState> {}
class ResizableBox
class ResizableBox extends React.Component<ResizableBoxProps, ResizableBoxState> {}
Interfaces
interface DragCallbackData
interface DragCallbackData {}
interface ResizableBoxState
interface ResizableBoxState {}
interface ResizableState
interface ResizableState {}
interface ResizeCallbackData
interface ResizeCallbackData {}
Type Aliases
type Axis
type Axis = 'both' | 'x' | 'y' | 'none';
type ResizableBoxProps
type ResizableBoxProps = ResizableProps & { style?: React.CSSProperties };
type ResizableProps
type ResizableProps = { children?: React.ReactNode; className?: string | undefined; handle?: | React.ReactNode | (( resizeHandle: ResizeHandle, ref: React.RefObject<any> ) => React.ReactNode) | undefined; handleSize?: [number, number] | undefined; lockAspectRatio?: boolean | undefined; minConstraints?: [width: number, height: number] | undefined; maxConstraints?: [width: number, height: number] | undefined; onResizeStop?: | ((e: React.SyntheticEvent, data: ResizeCallbackData) => any) | undefined; onResizeStart?: | ((e: React.SyntheticEvent, data: ResizeCallbackData) => any) | undefined; onResize?: | ((e: React.SyntheticEvent, data: ResizeCallbackData) => any) | undefined; draggableOpts?: any; resizeHandles?: ResizeHandle[] | undefined; transformScale?: number;} & ( | { width: number; height?: number | undefined; axis: 'x'; } | { width?: number | undefined; height: number; axis: 'y'; } | { width?: number | undefined; height?: number | undefined; axis: 'none'; } | { width: number; height: number; axis?: 'both'; });
type ResizeHandle
type ResizeHandle = 's' | 'w' | 'e' | 'n' | 'sw' | 'nw' | 'se' | 'ne';
Package Files (1)
Dependencies (1)
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/react-resizable
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/react-resizable)
- HTML<a href="https://www.jsdocs.io/package/@types/react-resizable"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3364 ms. - Missing or incorrect documentation? Open an issue for this package.