yarn @react-pdf-viewer/core 3.3.1
Customize the width of thumbnails

latest releases: 3.12.0, 3.11.0, 3.10.0...
2 years ago

New feature

  • The thumbnail plugin adds new option for customizing the width of thumbnails:
const thumbnailPluginInstance = thumbnailPlugin({
    thumbnailWidth: 150,
});

// Use with the default layout plugin
const defaultLayoutPluginInstance = defaultLayoutPlugin({
    thumbnailPlugin: {
        thumbnailWidth: 150,
    },
});

Bug fix

  • Support React 18 strict mode
<React.StrictMode>
    <Worker workerUrl="...">
        <Viewer fileUrl="..." />
    </Worker>
</React.StrictMode>

Don't miss a new core release

NewReleases is sending notifications on new releases.