@brendonovich/kobalte__solidbase
Version:
Fully featured, fully customisable static site generation for SolidStart
15 lines (14 loc) • 421 B
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;
}