<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [UrlMutations](./x-components.urlmutations.md) &gt; [setScroll](./x-components.urlmutations.setscroll.md)

## UrlMutations.setScroll() method

Sets the url scroll.

**Signature:**

```typescript
setScroll(scroll: string): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  scroll | string | The new first element visible in the scroll. |

**Returns:**

void

