Code
Zoom Control
PDF viewer with zoom controls and configurable zoom limits
Loading...
Implementation
Features
- Interactive zoom controls with real-time display
- Configurable zoom limits through
zoomOptions
prop - Clean, minimal interface
- Text selection support
- Responsive layout
Zoom Configuration
You can customize the zoom limits by passing zoomOptions
to the Root component:
Default zoom limits if not specified:
- Minimum zoom: 0.1 (10%)
- Maximum zoom: 10 (1000%)
Best Practices
- Implement responsive zoom increments
- Include proper loading states
- Maintain consistent styling
- Consider user experience when setting custom zoom limits
- Test text readability at custom zoom levels