use-screenshot icon indicating copy to clipboard operation
use-screenshot copied to clipboard

React hook to take screenshot for React components.

Results 11 use-screenshot issues
Sort by recently updated
recently updated
newest added

well, I am trying to take a screenshot of a particular div/component that contains a layered/masked image using usescreenshot in react, though I am only getting the color of the...

```ts const ref = createRef() const { image, takeScreenshot } = useScreenshot({ ref: ref }) return( {selectedItem && ( takeScreenshot()}>TouchMe )} ) ``` It is returning the error ``` TypeError:...

TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. at px (index.es.js?2c84:170:1) at Object.getNodeWidth (index.es.js?2c84:174:1) at getImageSize (index.es.js?2c84:800:1) at toSvgDataURL (index.es.js?2c84:806:1) at toCanvas (index.es.js?2c84:816:1) at...

Could not take screenshots using the use-screenshot-hook method in react-apexcharts. Got an error please send the solutions.

https://www.npmjs.com/package/use-screenshot-hook links to https://github.com/fayeed/use-screenshot-hook instead of https://github.com/fayeed/use-screenshot

I was unable to get this to work on Safari; however it did work on Chrome for Mac. Is that a known issue?

I have 4 div inside one div, I want to take 4 different screenshot for those div

I have a project requirement in which there are two divs who will start live streaming i.e. video calls when they connected over the network. So Is it can achieve...

I have a scrollable div, that I pass ref in to it, but it only takes the screenshot from the top part of the div, and I want it to...

Added React V18 Support to this package.