# AstroSetupParams

interface in `@dioramajs/diorama/astro`

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

What `astro:config:setup` gives the integration.

```ts
interface AstroSetupParams
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `config` | `{ readonly root: URL }` | The site's config; `root` is where `lenis` is looked up. |
| `injectScript` | `injectScript(stage: 'page' \| 'page-ssr', content: string): void` | Puts the page script (Lenis, scroll restoring) and lenis.css on every page. |
| `updateConfig` | `updateConfig(config: { vite: { … } }): unknown` | Adds the Vite plugin. |

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