Binary Raw - Docs
    Preparing search index...

    Configuration options passed to createDropZone.

    interface DropZoneOptions {
        element: HTMLElement;
        fileInput: HTMLInputElement;
        onFileSelected: (file: File) => void;
        onStateChange: (state: "idle" | "dragging") => void;
    }
    Index

    Properties

    element: HTMLElement

    The host element that acts as the visual drop target.

    fileInput: HTMLInputElement

    The hidden <input type="file"> used for the browse-to-open flow.

    onFileSelected: (file: File) => void

    Called with the selected or dropped.

    onStateChange: (state: "idle" | "dragging") => void

    Called whenever the drag state transitions between 'idle' and 'dragging'.