Skip to content

pantoken-root / renderers/astro/src / InstUI

ฟังก์ชัน: InstUI() ​

InstUI(options?): StarlightPluginLike

อัลฟา

สร้างปลั๊กอิน pantoken สำหรับ Starlight.

พารามิเตอร์ ​

options? ​

InstUIOptions = {}

InstUIOptions.

คืนค่า ​

StarlightPluginLike

ปลั๊กอิน Starlight ที่ฝัง stylesheet ของ 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()] })],
    }),
  ],
});