diff --git a/src/client/theme-default/components/VPSidebarGroup.vue b/src/client/theme-default/components/VPSidebarGroup.vue index 701453733f05..1c44569d7286 100644 --- a/src/client/theme-default/components/VPSidebarGroup.vue +++ b/src/client/theme-default/components/VPSidebarGroup.vue @@ -1,8 +1,6 @@ diff --git a/types/default-theme.d.ts b/types/default-theme.d.ts index 387385ace67e..49c464a0ea7c 100644 --- a/types/default-theme.d.ts +++ b/types/default-theme.d.ts @@ -150,7 +150,25 @@ export namespace DefaultTheme { export type SidebarItem = | { text: string; link: string } - | { text: string; link?: string; items: SidebarItem[] } + | { + text: string + link?: string + items: SidebarItem[] + + /** + * If `true`, toggle button is shown. + * + * @default false + */ + collapsible?: boolean + + /** + * If `true`, collapsible group is collapsed by default. + * + * @default false + */ + collapsed?: boolean + } // edit link -----------------------------------------------------------------