Skip to main content

PerspectiveTransform

react-perspective-transform


react-perspective-transform / PerspectiveTransform

Function: PerspectiveTransform()

PerspectiveTransform(props): ReactNode | Promise<ReactNode>

Defined in: src/PerspectiveTransform.tsx:93

A React component that applies a perspective transform to its children. It can be controlled (passing points and editable) or uncontrolled (managing points internally, optionally persisting them to localStorage).

In edit mode, users can drag corner handles to adjust the perspective. Edit mode can be toggled by SHIFT+[toggleKeys] or controlled via the editable prop.

Parameters

props

PerspectiveTransformProps

Returns

ReactNode | Promise<ReactNode>