# Getting Started ## Installing You can install `html2canvas-pro` through npm or [download a built release](https://github.com/yorickshan/html2canvas-pro/releases). ```sh npm install html2canvas-pro pnpm add html2canvas-pro yarn add html2canvas-pro ``` ## Usage ```javascript import html2canvas from 'html2canvas-pro'; ``` To render an `element` with html2canvas-pro with some (optional) [options](./configuration), simply call `html2canvas(element, options);` ```javascript html2canvas(document.body).then(function(canvas) { document.body.appendChild(canvas); }); ``` ### Script tag / CDN If you don't use a bundler, load the UMD bundle directly — it exposes the global `window.html2canvas`: ```html ``` Other bundles in the npm package: `html2canvas-pro.esm.js` (ESM), `html2canvas-pro.cjs` (CommonJS), `html2canvas-pro.js` (UMD), `html2canvas-pro.min.js` (UMD, minified). ## Interactive Demo
This is an HTML element that can be captured
✨ Supports modern CSS features like gradients, shadows, rounded corners, transforms, and more