@gpm-lds-astro/components
Version:
Components of the LDS Astro template.
31 lines (26 loc) • 550 B
text/typescript
type SidebarItemType = 'branch' | 'item';
export interface LeftSidebarSection {
heading: string;
items: LeftSidebarSectionItem[];
}
export interface LeftSidebarSectionItem {
label: string;
path: string;
href: string;
}
export interface LeftSidebarNode {
id: number;
label?: string;
link?: string;
selected?: boolean;
expanded?: boolean;
nodes: number[] | undefined;
depth: number;
type: SidebarItemType;
href: string | null;
}
export interface TreeOnClickData<T> {
node: T;
select: boolean;
treeIndex: string;
}