Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Aperture Preview

ProNew

Step through eight apertures and see the depth of field change in a live viewfinder.

Installation

pnpm dlx shadcn@latest add @viewport/aperture-preview

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
image*string

URL of the photograph to preview.

—
alt*string

Alternative text describing the photograph.

—
onChange(fStop: number) => void

Called with the selected f-number.

—
classNamestring—

Accessibility

  • A native range selects a labeled f-stop. Reduced motion makes each aperture change immediate.