Skip to content

Component library

A living showcase of every component available when authoring .mdx content here — the built-ins that ship with Starlight plus the ZajLibrary add-ons. Treat this page as a regression checklist: after editing tokens.css or theme.css, skim it to confirm nothing broke.

Cards group related entry points. A <CardGrid> lays them out responsively (one column on mobile, multiple on wide screens).

Playbooks

End-to-end flows like the CodeCanyon Laravel pipeline.

AI System

The agent operating system: constitution, rules, hooks, skills.

Templates

Copy-paste kits with seed.sh scaffolding.

Knowledge

Handbooks, guides, and durable reference.

<LinkCard> is a whole-card link for navigation; <LinkButton> is an inline call-to-action.

Browse playbooks All resources

The four built-in variants:

Two extra callouts via starlight-markdown-blocks, using the same ::: directive syntax:

Surface a design idea or alternative approach worth considering.

Record a decision and its rationale so future readers know why, not just what.

Inline status markers in every size and variant.

Default Note Success Tip Caution Danger

Small Medium Large

<Steps> turns an ordered list into a numbered, connected sequence — ideal for setup flows.

  1. Install the dependency.

    Terminal window
    npm i starlight-tags
  2. Wire it into astro.config.mjs plugins.

  3. Build to confirm green.

    Terminal window
    npm run build

<PackageManagers> renders synced tabs across npm/pnpm/yarn/bun — switching one switches all on the page.

Terminal window
npm create astro@latest -- -- --template starlight

Generic synced tabs (the syncKey keeps them aligned across the page).

Run npm run dev on :4321.

<FileTree> visualizes directory structure — used heavily in the AI System kit docs.

  • astro.config.mjs
  • Directorysrc
    • Directorycomponents
      • Header.astro
      • Stepper.astro
    • Directorycontent
      • Directorydocs
        • Directoryresources
          • component-library.mdx the page you’re reading
    • Directorystyles
      • tokens.css single source of truth for the palette
      • theme.css

The <Code> component renders syntax-highlighted code from a prop (handy for generated/dynamic snippets).

astro.config.mjs
export default {
title: 'ZajLibrary',
};

Inline <Icon> from Starlight’s built-in set.

This page declares tags: [components, reference, authoring] in its frontmatter. With starlight-tags, each tag gets its own generated page (e.g. /tags/reference/) listing every doc that shares it — turning the library’s tags field into real cross-cutting navigation.