Whether the viewer is in editing mode
The file to be displayed
The list of files currently opened in the viewer
Whether the sidebar is shown
OptionallocalOptional client-side source to display instead of fetching from the server
(e.g. an object URL for a freshly edited image not yet reflected in the
server preview). Handlers that support it should prefer this over file.
The max height of the viewer container
The max width of the viewer container
OptionalturnsQuarter turns anticlockwise the viewer is showing on top of the file's own orientation, while a rotation is being written. Handlers that can turn their content should honour it; the rest may ignore it.
List of props provided to your custom component. Use it like this: