Skip to content

ThemeModeScript

This component is used to add a script tag to your Astro project to handle the theme mode. Add this component in the main layout Astro component.

Import

Terminal window
import { ThemeModeScript } from "@aeonkit/astro";

Usage

By default, the users preferred theme mode is used.

AppLayout.astro
<html>
<body>
<App />
<ThemeModeScript />
</body>
</html>

Props

None