Skip to content

pantoken / renderers/astro/src / InstUI

Συνάρτηση: InstUI()

InstUI(options?): StarlightPluginLike

Άλφα

Δημιουργήστε το πρόσθετο Starlight του pantoken.

Παράμετροι

options?

InstUIOptions = {}

InstUIOptions.

Επιστρέφει

StarlightPluginLike

Ένα πρόσθετο Starlight που εισάγει το φύλλο στυλ του pantoken στο head της σελίδας.

Παράδειγμα

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