Preview is used to display a thumbnail. If your
src points to an external provider then the
thumbnail is automatically loaded. If you'd like to know how it compares to other options then see
the getting started page.
dist folder inside the package contains multiple exports:
preview.jsis a UMD development build that can be used directly in the browser via the
preview.esm.jsis intended for use with modern bundlers like Webpack or Rollup.
preview.min.jsis a UMD production build that can be used directly in the browser via the
preview.esm.min.jsis an ESM production build that can be used directly in modern browsers via the
See the client-side component API for the complete set of component initialization options.
Go to the API page to see what props/methods/events are exposed and how you can interact with them.