Aller au contenu
CtrlK

SidebarItem

Sur cette page
Cette référence API est générée à partir des commentaires TypeScript en anglais. Les noms, signatures et exemples correspondent au paquet publié.
import type { SidebarItem } from "ardo/config"

type SidebarItem = {
    text: string;
    link?: string;
    routePath?: string;
    publicPath?: string;
    versionId?: string;
    localeId?: string;
    icon?: "api" | "book" | "box" | "code" | "components" | "docs" | "guide" | "settings" | "tools";
    collapsed?: boolean;
    items?: SidebarItem[];
};

Properties

NameTypeRequired
textstringYes
linkstringNo
routePathstringNo
publicPathstringNo
versionIdstringNo
localeIdstringNo
icon"api" | "book" | "box" | "code" | "components" | "docs" | "guide" | "settings" | "tools"No
collapsedbooleanNo
itemsSidebarItem[]No