SVGO plugin which adds "viewBox" attribute based on "width" and "height" attributes
-
Updated
Jun 13, 2026 - JavaScript
SVGO plugin which adds "viewBox" attribute based on "width" and "height" attributes
Add viewBox attribute to your SVGs and then optimize them with SVGO
Extracts the viewBox information from an SVG string
Headless, dependency-free pan & zoom for SVG via the viewBox attribute — crisp at any zoom. Plus a 1-D label de-overlap solver. React + TypeScript.
Add a description, image, and links to the viewbox topic page so that developers can more easily learn about it.
To associate your repository with the viewbox topic, visit your repo's landing page and select "manage topics."