Add download button to the ROI slide card
CI / build (push) Canceled after 0s

Lazy-loads html2canvas (separate chunk, only fetched on click) to export
the card as a PNG. The button floats on the card's top-right corner,
outside the captured element, so it never ends up in the exported image.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 17:32:18 +05:00
co-authored by Claude Sonnet 5
parent 6d1ad44e6d
commit 5232e6bd64
4 changed files with 142 additions and 2 deletions
+1
View File
@@ -15,6 +15,7 @@
},
"dependencies": {
"framer-motion": "^11.18.2",
"html2canvas": "^1.4.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.2",