svelte-polaroids
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

svelte-polaroids

  • a simple polaroid photo component
  • great for letting users browse sequential images
  • only dependency is interactjs

gif demo

demo

usage

<script>
	import SveltePolaroid from "svelte-polaroids";
</script>

<SveltePolaroid size={200} sources={[ 'https://.../pic1.jpg', 'https://.../pic2.jpg', ... ]} />

props

  • size: maximum for the larger of the image's two dimensions
  • sources: urls of the images to be used

authors

Package Sidebar

Install

npm i svelte-polaroids

Weekly Downloads

0

Version

0.0.7

License

MIT

Unpacked Size

11.2 kB

Total Files

9

Last publish

Collaborators

  • tjb111