Skip to content

pantoken / renderers/astro/src / InstUI

Функція: InstUI()

InstUI(options?): StarlightPluginLike

Альфа

Створити плагін pantoken для Starlight.

Параметри

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