Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

instant-photo

spelexander25MIT1.0.14TypeScript support: included

Example screenshot

polaroid, fujifilm, instant, photo, retro, photogrpahy, camera

readme

📷 instant-photo

Example screenshot

📸 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