<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [ScrollMutations](./x-components.scrollmutations.md) &gt; [setScrollComponentState](./x-components.scrollmutations.setscrollcomponentstate.md)

## ScrollMutations.setScrollComponentState() method

Sets the scroll position of a certain panel.

**Signature:**

```typescript
setScrollComponentState(partialState: ScrollStatePayload): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  partialState | [ScrollStatePayload](./x-components.scrollstatepayload.md) | An object with the fields to modify. |

**Returns:**

void

