DioramaAstroOptions interface
Options of the Astro integration.
import type { DioramaAstroOptions } from '@dioramajs/diorama/astro'interface DioramaAstroOptions extends DioramaPluginOptionsMembers
| Name | Type | Description |
|---|---|---|
readonly dir? | string | The effects folder, relative to the Vite root. Default 'src/effects'. |
readonly lenis? | boolean | AstroLenisOptions | Smooth scroll with Lenis on every page: |
readonly restoreScroll? | 'history' | ScrollRestore | Which ClientRouter links land where the reader left the page instead of at the top. 'history' (default), as browsers do: only Back and Forward. 'parents': also links up the address, to |
readonly types? | string | false | The types file, relative to the root, or |
Defined in packages/diorama/src/astro.ts.