react-grab 0.1.25 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -217,9 +217,17 @@ Then, put this in your React app:
217
217
 
218
218
  ```tsx
219
219
  import { useState } from "react";
220
- import { getElementContext, freeze, unfreeze, openFile, type ReactGrabElementContext } from "react-grab/primitives";
221
-
222
- const useElementSelector = (onSelect: (context: ReactGrabElementContext) => void) => {
220
+ import {
221
+ getElementContext,
222
+ freeze,
223
+ unfreeze,
224
+ openFile,
225
+ type ReactGrabElementContext,
226
+ } from "react-grab/primitives";
227
+
228
+ const useElementSelector = (
229
+ onSelect: (context: ReactGrabElementContext) => void,
230
+ ) => {
223
231
  const [isActive, setIsActive] = useState(false);
224
232
 
225
233
  const startSelecting = () => {