UNPKG

razor-shared-library

Version:
26 lines (25 loc) 567 B
import { ReactNode } from 'react'; export interface MenuItemType { key: string; label: string; icon: ReactNode; onClick?: () => void; children?: MenuItemType[]; } export interface MenuGroup { title?: string; items: MenuItemType[]; } export interface SidebarMenuProps { isOpen: boolean; items: MenuGroup[]; width?: number; collapsedWidth?: number; top?: number; selectedColor?: string; backgroundColor?: string; selectedKey?: string; fontColor?: string; header?: ReactNode; footer?: ReactNode; }