# AstroLenisOptions

interface in `@dioramajs/diorama/astro`

```ts
import type { AstroLenisOptions } from '@dioramajs/diorama/astro'
```

Lenis options that can be written into the page. Functions (`easing`, `prevent`,
`virtualScroll`) cannot: pass those to `smoothScroll` from diorama/astro/client in a script.

```ts
interface AstroLenisOptions
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `allowNestedScroll?` | `boolean` | Let nested scroll areas scroll natively. Default false. |
| `anchors?` | `boolean \| { … }` | Smooth scroll to `#hash` links of the same page, with scroll options if an object. |
| `autoResize?` | `boolean` | Measure the page again when it resizes. Default true. |
| `autoToggle?` | `boolean` | Stop while <html> has `overflow: hidden` or `clip`, start when it scrolls again. |
| `duration?` | `number` | Duration of a smooth scroll, s, used instead of `lerp`. |
| `gestureOrientation?` | `'vertical' \| 'horizontal' \| 'both'` | The gestures that scroll. Default the `orientation`, 'both' for horizontal. |
| `infinite?` | `boolean` | Endless scroll. Default false. |
| `lerp?` | `number` | Smoothing per frame, 0 to 1. Lenis' default 0.1. |
| `naiveDimensions?` | `boolean` | Measure with scrollHeight on every read. Default false. |
| `orientation?` | `'vertical' \| 'horizontal'` | The scroll axis. Default 'vertical'. |
| `overscroll?` | `boolean` | Let a nested Lenis hand the scroll over at its end. Default true. |
| `respectReducedMotion?` | `boolean` | Under reduced motion follow the input 1:1. Default true. |
| `smoothWheel?` | `boolean` | Smooth the wheel. Default true. |
| `stopInertiaOnNavigate?` | `boolean` | Stop the inertia when a link to another page is clicked. Default false. |
| `syncTouch?` | `boolean` | Smooth touch too, with inertia. Default false. |
| `syncTouchLerp?` | `number` | `lerp` while `syncTouch` follows a finger. Default 0.075. |
| `touchInertiaExponent?` | `number` | Strength of the `syncTouch` inertia. Default 1.7. |
| `touchMultiplier?` | `number` | Multiplier of touch moves. Default 1. |
| `wheelMultiplier?` | `number` | Multiplier of wheel steps. Default 1. |

Defined in [packages/diorama/src/astro.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/diorama/src/astro.ts#L15).
