Interface ICursorStaticProps

interface ICursorStaticProps {
    __staticProp?: true;
    append?: boolean;
    behavior?: "path" | "default";
    container?: Element | Window;
    hideNative?: boolean;
    transformModifier?: (coords: ICursorFullCoords) => string;
}

Hierarchy (View Summary)

Properties

__staticProp?: true
append?: boolean

Appends the custom cursor to the container. Use false if you need only cursor logic and interactions.

true
behavior?: "path" | "default"

Cursor behavior

'default'
container?: Element | Window

The container where the custom cursor is active. Use window for full-window activation.

window
hideNative?: boolean

Hides the native cursor if set to true.

false
transformModifier?: (coords: ICursorFullCoords) => string

Modifier for the cursor transform.

(coords) => translate(${coords.x}px, ${coords.y}px)