Component packs › Upgrade › Photo editor

Photo editor

Drag a split between a real landscape and the Pro grade, which changes as it sweeps.

Photo editor is a paywall from Upgrade, a component pack with 6 components: Honest paywalls for six kinds of app, where what you unlock is the hero. Price: $5 for the whole pack.

Built with: before and after split, colour grades, drag or keys.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Photo editor props

PropTypeDefaultDescription
darkboolean
autoplayboolean
currencystring
photosRecord<string
onSubscribe(planId: string) => void

Methods on the ref

Use it in React

import PhotoPaywall from './PhotoPaywall';

<PhotoPaywall />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Upgrade

Good for: Paywalls and subscription screens.