UNPKG

side-navigation-react

Version:

Easy, responsive & flexible navigational component that compose declaratively with your application.

49 lines (48 loc) 1.16 kB
export declare type navbarTheme = { listItemHeadingColor: string; homeLinkColor: string; listItemHeadingArrowColor: string; subListItemTextColor: string; subListItemHeadingColor: string; subListItemHeadingArrowColor: string; hover: { subListItemColorOnHover: string; subListItemBackgroundOnHover: string; }; }; export interface ExtensionProps extends LayersProps { isExpanded: boolean; } export declare type ArrowProps = { isExpanded: boolean; nesting?: boolean; theme: navbarTheme; }; export declare type SubNestingProps = { nesting?: boolean; level?: number; theme: navbarTheme; }; export interface LayersProps { navItem: navItem; nesting?: boolean; level: number; } export interface NavigationLayerProps extends SideNavigationProps { nesting?: boolean; level: number; } export declare type navItem = { title: string; route?: string; children?: navItem[]; }; export interface SideNavigationProps { heading?: { title: string; route: string; }; navItems: navItem[]; theme?: navbarTheme; navBackground?: string; }