UNPKG

@brizy/ui

Version:
17 lines (16 loc) 458 B
import { ReactElement } from "react"; import { MaxBy, Size } from "./utils"; export interface Position { x: number; y: number; } export interface Props { value: Position; src?: string; errorMessage?: string; size?: Size; maxBy?: MaxBy; onChange?: (data: Position) => void; onError?: VoidFunction; } export declare const ImagePointer: ({ value, src, errorMessage, size, maxBy, onChange, onError, }: Props) => ReactElement;