Skip to content

pantoken / renderers/astro/src / InstUI

Függvény: InstUI()

InstUI(options?): StarlightPluginLike

Alfa

Hozza létre a pantoken Starlight plugint.

Paraméterek

options?

InstUIOptions = {}

InstUIOptions.

Visszatérés

StarlightPluginLike

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()] })],
    }),
  ],
});