MCPcopy
hub / github.com/bokuweb/react-rnd / Props

Interface Props

src/index.tsx:116–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114};
115
116export interface Props {
117 dragGrid?: Grid;
118 default?: {
119 x: number;
120 y: number;
121 } & Size;
122 position?: {
123 x: number;
124 y: number;
125 };
126 size?: Size;
127 resizeGrid?: Grid;
128 bounds?: string | Element;
129 onMouseDown?: (e: MouseEvent) => void;
130 onMouseUp?: (e: MouseEvent) => void;
131 onResizeStart?: RndResizeStartCallback;
132 onResize?: RndResizeCallback;
133 onResizeStop?: RndResizeCallback;
134 onDragStart?: RndDragCallback;
135 onDrag?: RndDragCallback;
136 onDragStop?: RndDragCallback;
137 className?: string;
138 style?: React.CSSProperties;
139 children?: React.ReactNode;
140 enableResizing?: ResizeEnable;
141 resizeHandleClasses?: HandleClasses;
142 resizeHandleStyles?: HandleStyles;
143 resizeHandleWrapperClass?: string;
144 resizeHandleWrapperStyle?: React.CSSProperties;
145 resizeHandleComponent?: HandleComponent;
146 lockAspectRatio?: boolean | number;
147 lockAspectRatioExtraWidth?: number;
148 lockAspectRatioExtraHeight?: number;
149 maxHeight?: number | string;
150 maxWidth?: number | string;
151 minHeight?: number | string;
152 minWidth?: number | string;
153 dragAxis?: "x" | "y" | "both" | "none";
154 dragHandleClassName?: string;
155 disableDragging?: boolean;
156 cancel?: string;
157 enableUserSelectHack?: boolean;
158 dragPositionOffset?: DraggableProps["positionOffset"];
159 allowAnyClick?: boolean;
160 scale?: number;
161 [key: string]: any;
162}
163
164const resizableStyle = {
165 width: "auto" as "auto",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…