<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [SpatialNavigation](./x-components.spatialnavigation.md) &gt; [navigateTo](./x-components.spatialnavigation.navigateto.md)

## SpatialNavigation.navigateTo() method

Get next element to navigate to.

**Signature:**

```typescript
navigateTo(direction: ArrowKey): HTMLElement;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  direction | [ArrowKey](./x-components.arrowkey.md) |  |

**Returns:**

HTMLElement

The element to navigate to or null.

