Skip to content

pqina/pintura-component-pintura-input

Repository files navigation

Pintura Input

The <pintura-input> custom element is a tiny wrapper around the <input type="file"> element, making it super easy to add image editing to file input elements.

For a quick start use the Pintura Input example project as a guideline.

Installation

Install via npm:

npm install @pqina/pintura @pqina/pintura-input

Or you can download the repository as a zip and use the files in the dist folder.

Usage

<pintura-input image-crop-aspect-ratio="4/3">
    <input type="file" id="my-id" required />
</pintura-input>

<!-- load the pintura -->
<script src="pintura/pintura-iife.js"></script>

<!-- load the <pintura-input> custom element -->
<script src="pintura-input/pinturainput-iife.js"></script>

More information in the Pintura input docs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published