react-cropper

  • Version 2.3.3
  • Published
  • 20.5 kB
  • 1 dependency
  • MIT license

Install

npm i react-cropper
yarn add react-cropper
pnpm add react-cropper

Overview

Cropper as React Component

Index

Variables

variable Cropper

const Cropper: React.ForwardRefExoticComponent<any>;

    variable ReactCropper

    const ReactCropper: React.ForwardRefExoticComponent<any>;

      Interfaces

      interface ReactCropperElement

      interface ReactCropperElement extends HTMLImageElement {}

        property cropper

        cropper: Cropper;

          interface ReactCropperProps

          interface ReactCropperProps
          extends ReactCropperDefaultOptions,
          Cropper.Options<HTMLImageElement>,
          Omit<React.HTMLProps<HTMLImageElement>, 'data' | 'ref' | 'crossOrigin'> {}

            property crossOrigin

            crossOrigin?: '' | 'anonymous' | 'use-credentials' | undefined;

              property on

              on?: (
              eventName: string,
              callback: () => void | Promise<void>
              ) => void | Promise<void>;

                property onInitialized

                onInitialized?: (instance: Cropper) => void | Promise<void>;

                  Package Files (1)

                  Dependencies (1)

                  Dev Dependencies (50)

                  Peer Dependencies (1)

                  Badge

                  To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                  You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/react-cropper.

                  • Markdown
                    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/react-cropper)
                  • HTML
                    <a href="https://www.jsdocs.io/package/react-cropper"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>