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