We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1db62da commit 733afa4Copy full SHA for 733afa4
packages/react-grab/src/index.ts
@@ -6,6 +6,13 @@ export {
6
DEFAULT_THEME,
7
} from "./core/index.js";
8
export { generateSnippet } from "./utils/generate-snippet.js";
9
+export {
10
+ captureElementScreenshot,
11
+ copyImageToClipboard,
12
+ combineBounds,
13
+} from "./utils/capture-screenshot.js";
14
+export type { ElementBounds } from "./utils/capture-screenshot.js";
15
+export { isScreenshotSupported } from "./utils/is-screenshot-supported.js";
16
export type {
17
Options,
18
ReactGrabAPI,
packages/react-grab/src/utils/capture-screenshot.ts
@@ -4,7 +4,7 @@ import {
4
VIDEO_READY_TIMEOUT_MS,
5
} from "../constants.js";
-interface ElementBounds {
+export interface ElementBounds {
x: number;
y: number;
width: number;
0 commit comments