App UI kits › Halation › Crop and level

Crop and level

Straighten on a ring with one-degree detents while the photo zooms just enough to fill, then crop to square, 4:5 or 16:9.

Crop and level is a screen from Halation, an app ui kit with 13 screens: A pro camera and film editor where the histogram, focus peaking and film looks are worked out from the real photo. Price: $5 for the whole pack.

Built with: straighten ring, fill zoom, aspect frames.

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.

Crop and level props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosLXPhotos
shotstringthe shot to edit, from the kit's roll
onCancel() => void
onDone(edit: LXParams & { rotate: number; aspect: string }) => void

Methods on the ref

Use it in React

import HalationCrop from './HalationCrop';

<HalationCrop />

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

More in Halation

Good for: Camera app.