Merged
Conversation
🦋 Changeset detectedLatest commit: 98b80e0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Contributor
size-limit report 📦
|
Merged
This was referenced Oct 7, 2023
This was referenced Oct 8, 2023
1 task
Starlight is awesome, I'm rather enjoying it but still learning. I'd love to see the documentation for overriding the PageFrame.astro component, specifically how to preserve the named header slot. |
|
Update: I think I figured it out. Really loving Starlight :) <3 |
This was referenced Dec 2, 2023
Yoxnear
pushed a commit
to Yoxnear/starlight-custom
that referenced
this pull request
Jul 23, 2025
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What kind of changes does this PR include?
Description
Support “slots” — spaces in the layout where no default component is rendered but users can add custom UICancelled for now after some discussion — let’s see if we can make an override-only system as nice as possible!Docs preview →
How will this feature work?
There’s a new
componentsoption in Starlight config where users can provide a component to override one of Starlight’s built-in components inastro.config.mjs:Components used to override a built-in component can import types to get type-safe props. These are consistent across all components available to override:
Components can import the default implementation if they want to just add some DOM alongside the existing UI:
Most components don’t require
<slot />, but some do, so I’m thinking this pattern should be what we document for consistency.<PageFrame />uses named slots, which might need extra documentation. Looked at refactoring it to avoid using them, but I think it would lead to worse code structure.