---
title: "offset"
description: "The current offset, or [Float.NaN] if it has not been initialized yet."
type: "property"
---
## API Reference

> Source set: Common

```kotlin
public var offset: Float by mutableFloatStateOf(Float.NaN)
```

The current offset, or `Float.NaN` if it has not been initialized yet.

The offset will be initialized when the anchors are first set through [updateAnchors](/jetpack-compose/androidx.compose.foundation/foundation/functions/updateAnchors/api).

Strongly consider using [requireOffset](/jetpack-compose/androidx.compose.foundation/foundation/functions/requireOffset/api) which will throw if the offset is read before it is
initialized. This helps catch issues early in your workflow.
