Skip to content

pantoken / renderers/astro/src / InstUI

Fonction: InstUI()

InstUI(options?): StarlightPluginLike

Alpha

Créer le plugin Starlight de pantoken.

Paramètres

options?

InstUIOptions = {}

InstUIOptions.

Retourne

StarlightPluginLike

Un plugin Starlight qui injecte la feuille de style pantoken dans l'en-tête de la page.

Exemple

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