You can preview pages of a PDF document by using the `Thumbnails` component provided by the Thumbnail plugin.
By default, the component displays the thumbnail and index of each page. This example demonstrates how you can customize thumbnail items.
Let's say that we want to select particular pages, and then you can manipulate them in the back-end. Removing the selected pages from the document, or merging them into a new document are two possible usages.
The component provides the `renderThumbnailItem` property for customizing thumbnail item renderer:
Since we want each thumbnail item to be selectable, it should include a `checkbox` whose the `checked` property is determined by the `selectedPages` state:
If you would like to have buttons which allow users to select or deselect all pages at the same time, then it is easy too. The following callbacks can be used to handle the `click` events of the buttons:
Customize the Thumbnails tab in the default layout
The default layout plugin uses the `Thumbnails` component as the first tab in the sidebar. Since we can manage the tabs via the `sidebarTabs` option, we can replace the default thumbnails tab with our custom thumbnails: