instant-photo
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

📷 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

Package Sidebar

Install

npm i instant-photo

Weekly Downloads

1

Version

1.0.14

License

MIT

Unpacked Size

15 kB

Total Files

10

Last publish

Collaborators

  • spelexander