instant-photo
v1.0.14
Published
<img src="./images/example-46mm.png" alt="Example screenshot" width="20%"/>
Downloads
10
Maintainers
Readme
📷 instant-photo
📸 React component that makes images look like a polaroid picture.
yarn add instant-photo
# or
npm -i instant-photo
Usage
import { InstantPhoto } from 'instant-photo';
<InstantPhoto
image="https://images.unsplash.com/photo-1648142618804-92f908f93c10"
/>
Size 'small' or 'large' (defaulting to large)
<InstantPhoto
size="small"
/>
Variants '46mm' or '99mm' (defaulting to 46mm)
<InstantPhoto
variant="99mm"
/>
Filters 'polaroid' | 'vintage' | 'greyscale' | 'bloom' | 'none' (defaulting to polaroid)
<InstantPhoto
filter="vintage"
/>
No image, black placeholder film.
<InstantPhoto />
For more examples see src/examples/examples.stories.tsx