pdf-annotator-react
Version:
A React component library for PDF annotation
19 lines (18 loc) • 570 B
TypeScript
import React from 'react';
import { Annotation, CustomCategory } from '../types';
interface AnnotationDetailsProps {
annotation: Annotation;
onUpdate: (id: string, updates: Partial<Annotation>) => void;
onDelete: (id: string) => void;
onClose: () => void;
position?: {
x: number;
y: number;
};
isNew?: boolean;
customCategories?: CustomCategory[];
viewOnly?: boolean;
onAnnotationsChange?: (annotations: Annotation[]) => void;
}
export declare const AnnotationDetails: React.FC<AnnotationDetailsProps>;
export {};