npm.io
2.0.1 • Published 1 week ago

@atlaskit/media-file-preview

Licence
Apache-2.0
Version
2.0.1
Deps
9
Size
328 kB
Vulns
0
Weekly
0

MediaFilePreview

A React Hook to fetch and render file previews. It's overloaded with fancy features like SSR, lazy loading, memory cache and local preview.

Usage

import MediaFilePreview from '@atlaskit/media-file-preview';

Detailed docs and example usage can be found here.

Remote and SSR preview URLs include the media client ID when available to support cross-client copy and paste.