box / box/box-ui-elements

Add option to use thumbnail instead of viewer until user hovers ContentPreview

Open
#90 0 comments 0 reactions 0 assignees View on GitHub
enhancement valid
Dominant language
TypeScript
Stars
551
Forks
351
Avg merge
5d 9h
Merged PRs (30d)
31

Description

To enable a more performant web experience, we would like to load the thumbnail preview of a file as fast as possible, and only initialize the viewers when the user interacts with the `` element, say by hovering over it.

We'd probably want this to be customizable by the user so maybe simply having another prop like `useThumbnail`, `disableViewer`, or some sort of flag that we could remove when we want to actually use the real viewer might be good.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.