This is an lwc that shows the list of files related to a record in a tabular form, with support for viewing previous versions as well, without having to navigate away from the record page
surajp/lwc-files-list
files related list for lightning record pages, with instant previews on hover
JavaScriptMIT