-
-
Notifications
You must be signed in to change notification settings - Fork 215
Open
Description
What problem does this feature solve?
I want a shortcut to toggle sidebar visibility
I know we can use search query sidebar=0
to toggle
A short cut could provides a better user experience
I did some prototype in #2142 but still have a lot detail to discuss
What does the proposed API look like?
- If we need a config flag to opt-in looks like
export default defineConfig({
themeConfig: {
sidebar: {
collapsible:true,// as default
...otherConfig,
},
},
});
- current I use
lucide:panel-left-close
andlucide:panel-left-open
as toggle logo (if any logo prefer I will replace them) - any design or interactive need update?
- demo preview
https://github.com/user-attachments/assets/6dd06fad-429f-4ff7-8695-3d4feee2d8f9
Metadata
Metadata
Assignees
Labels
No labels