<DriveImage /> Component
The core React component for rendering Google Drive images with skeletons and fallback UI.
drive-image.tsx
| 1 | <DriveImage |
| 2 | src="https://drive.google.com/file/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs/view" |
| 3 | alt="User Profile Avatar" |
| 4 | width={200} |
| 5 | height={200} |
| 6 | fade={true} |
| 7 | lazy={true} |
| 8 | /> |
Usage Notes
DriveImage supports all standard HTML <img> attributes and React props. When lazy=true is enabled, resolution triggers only when the image enters the viewport.
