@brendonovich/kobalte__solidbase
Version:
Fully featured, fully customisable static site generation for SolidStart
20 lines (16 loc) • 404 B
text/typescript
export type SidebarConfig<Item = SidebarItem> =
| Item[]
| Record<`/${string}`, Item[]>;
export type SidebarItem<T = {}> = T & (SidebarItemLink | SidebarItemSection<T>);
export interface SidebarItemLink {
title: string;
link: string;
target?: string;
rel?: string;
}
export interface SidebarItemSection<T = {}> {
title: string;
items: SidebarItem<T>[];
collapsed?: boolean;
base?: string;
}