View as Markdown

API reference: @salmonui/editors/image-editor

ImageEditorfunction

import { ImageEditor } from '@salmonui/editors/image-editor';
function ImageEditor(props: ImageEditorProps): ReactElement;

ImageEditor: crop, rotate, straighten, flip, resize, zoom and pan, finetune and filter presets, frames, shape / text / freehand / image annotations, redaction, undo and redo, and export through actionsRef. .salmon-image-editor with data-status and data-tool; ref is the canvas (role="img").