React bindings to the Recogito PDF annotator
npm install @recogito/react-pdf-annotator``sh`
npm install @recogito/pdf-annotator @annotorious/react @recogito/react-pdf-annotator
`jsx
import { Annotorious } from '@annotorious/react';
import { PDFAnnotator } from '@recogito/react-pdf-annotator';
export const App = () => {
return (
)
}
`
The TextAnnotationPopup from the Recogito Text Annotator package is fully compatible with the PDF annotator.
`jsx
import { Annotorious } from '@annotorious/react';
import { PDFAnnotator } from '@recogito/react-pdf-annotator';
import { TextAnnotationPopup } from '@recogito/react-text-annotator';
export const App = () => {
return (
popup={props => (
}
``
The PDF annotator supports all Annotorious hooks, exactly like the text annotator.