🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

react-picture-annotate

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-picture-annotate

A powerful and simple React component for image annotation.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

React Picture Annotate

A powerful and simple React component for creating bounding box annotations on images.

Installation

npm install react-picture-annotate

Usage

import { Annotator, Annotation } from 'react-picture-annotate';
import 'react-picture-annotate/dist/style.css'; // Don't forget to import the styles!

const MyComponent = () => {
  const classes = ['cat', 'dog', 'person'];
  const imageUrl = '[https://example.com/my-image.jpg](https://example.com/my-image.jpg)';

  const handleSave = (annotations: Annotation[]) => {
    console.log('Saved annotations:', annotations);
  };

  return (
    <Annotator
      imageUrl={imageUrl}
      classes={classes}
      onSave={handleSave}
      onCancel={() => console.log('Cancelled')}
    />
  );
};

Props

PropTypeDescription
imageUrlstringThe URL of the image to annotate.
classesstring[]An array of class names for the dropdown.
onSave(annotations: Annotation[]) => voidCallback function when the save button is clicked.
onCancel() => voidCallback function when the cancel button is clicked.

Keywords

react

FAQs

Package last updated on 14 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts