Getting Started
A premium, animated Table of Contents indicator for Starlight documentation sites.
Prerequisites
Section titled “Prerequisites”You will need to have a Starlight website set up. If you don’t have one yet, you can follow the “Getting Started” guide in the Starlight docs to create one.
Installation
Section titled “Installation”-
starlight-glideis a Starlight plugin. Install it by running the following command in your terminal:Terminal window npm install starlight-glideTerminal window pnpm add starlight-glideTerminal window yarn add starlight-glide -
Configure the plugin in your Starlight configuration in the
astro.config.mjsfile.astro.config.mjs import starlight from '@astrojs/starlight'import { defineConfig } from 'astro/config'import starlightGlide from 'starlight-glide'export default defineConfig({integrations: [starlight({plugins: [starlightGlide()],title: 'My Docs',}),],}) -
(Optional) Customize the plugin. Pick your presets for desktop indicator, mobile view, and animation physics:
astro.config.mjs export default defineConfig({integrations: [starlight({plugins: [starlightGlide({desktop: 'snake', // or 'dot'mobile: 'dropdown', // or 'minimal'physics: 'smooth', // or 'spring', 'snap'glassmorphism: true,})],}),],})Check out the Configuration guide for all presets and per-page overrides.
-
Start the development server to preview the plugin in action.