Skip to content

Configure Page Actions Position

Starlight Page Actions can display actions in two places: below the page title or in the table of contents.

By default, page actions are displayed below the page title.

To show page actions below the page title, set the position property to page-title.

import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
import starlightPageActions from "starlight-page-actions";
export default defineConfig({
integrations: [
starlight({
plugins: [
starlightPageActions({
position: "page-title",
}),
],
title: "My Docs",
}),
],
});

To show page actions in the table of contents, set the position property to table-of-contents.

import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
import starlightPageActions from "starlight-page-actions";
export default defineConfig({
integrations: [
starlight({
plugins: [
starlightPageActions({
position: "table-of-contents",
}),
],
title: "My Docs",
}),
],
});