pantoken / renderers/astro/src / InstUI
Függvény: InstUI()
InstUI(
options?):StarlightPluginLike
Alfa
Hozza létre a pantoken Starlight plugint.
Paraméterek
options?
InstUIOptions = {}
Visszatérés
Egy Starlight plugin, amely a pantoken stíluslapot injektálja az oldal fejlécébe.
Példa
astro.config.mjs
ts
import starlight from "@astrojs/starlight";
import { InstUI } from "@pantoken/astro";
import { transition } from "@pantoken/plugin-transition";
export default defineConfig({
integrations: [
starlight({
title: "Docs",
plugins: [InstUI({ theme: "rebrand", plugins: [transition()] })],
}),
],
});