Create Custom File Preview Components
Make it easy for your users to preview files and take action on them
using the Files Preview component. Developers can create a custom file preview component that
displays a rich preview of uploaded files. The File Preview component is available in
Lightning Experience and Lightning communities.
The Files Preview component displays a preview of the file with file actions clearly labeled across the top. When a file can’t be previewed, the preview shows an icon of the file’s type.


