UNPKG

@arche-mc2/arche-controls

Version:

We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get

34 lines (33 loc) 922 B
export interface UpTreeViewProps { onBranchClick?: (data: MenuItemData) => void; childMenuItems?: MenuItemData[]; showInvisible?: boolean; } export interface UpTreeViewState { selectedBranchId: string; } export interface MenuItemData { id: string; text: string; isSelected?: boolean; isVisible?: boolean; childMenuItems?: MenuItemData[]; } export interface SubMenuProps { childMenuItems?: MenuItemData[]; onBranchClick: (data: MenuItemData, branchId: string) => void; branchId?: string; selectedBranchId?: string; showInvisible: boolean; } export interface SubMenuState { } export interface SubItemsProps extends MenuItemData { onBranchClick: (data: MenuItemData, branchId: string) => void; branchId: string; selectedBranchId: string; showInvisible: boolean; } export interface SubItemsState { expand: boolean; }