See https://github.com/withastro/starlight/discussions/1108#discussioncomment-15024150
Would starlight folks be open to a PR for making the right and/or left sidebar collapsible and expandable with a chevron button?
4 messages · Page 1 of 1 (latest)
See https://github.com/withastro/starlight/discussions/1108#discussioncomment-15024150
Would starlight folks be open to a PR for making the right and/or left sidebar collapsible and expandable with a chevron button?
cc. @light mason @fathom pumice
I'm not sure if the linked discussion is exactly what you're looking for, looks like it's more about permanent layout rather than dynamically hiding/showing the sidebar. This one is probably closer: https://github.com/withastro/starlight/discussions/2264
Personally, my first thought is that this may be better suited for a community plugin, as an opt-in feature that users can add if they want it. I don't think such feature would be universally desired and/or gets a lot of value from being core to the project. It would also likely allow for faster iterations as I think there may be quite some interesting UX decisions and accessibility considerations to take into account.
I think there already is a community plugin with a similar goal: https://windmillcode.github.io/starlight-fullview-mode/ Maybe this solves what you are looking for?
A minimalist plugin that collapses Starlight's sidebars and expands the main content to full width, creating a distraction-free, fullscreen-like reading experience. Toggle with a single click to focus purely on your content.