UNPKG

rsuite

Version:

A suite of react components

17 lines (16 loc) 572 B
import React from 'react'; export interface SidenavContextType<T = string | number> { openKeys: T[]; /** * @deprecated Use activeKey from NavContext instead */ activeKey: T | undefined; sidenav: boolean; expanded: boolean; onOpenChange: (eventKey: T, event: React.SyntheticEvent) => void; /** * @deprecated Use onSelect from NavContext instead */ onSelect?: (eventKey: T | undefined, event: React.SyntheticEvent) => void; } export declare const SidenavContext: React.Context<SidenavContextType<string | number> | null>;