> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# getMousePosition

> Return the current mouse cursor position.

import { PageLink } from '/snippets/tsdocs/PageLink.jsx';
import { RefLink } from '/snippets/tsdocs/RefLink.jsx';

# getMousePosition

## Summary

Return the current mouse cursor position.

## Signature

```typescript theme={null}
getMousePosition(): {
    x: number;
    y: number;
  };
```

## Parameters

*No parameters.*

## Returns

**Type**:

```typescript theme={null}
{
    x: number;
    y: number;
  }
```

Return the current mouse cursor position.
