@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
29 lines (28 loc) • 1.03 kB
TypeScript
import React from 'react';
import type { NavProps, ItemKey } from './index';
import { Locale } from '../locale/interface';
import type { DropdownProps } from '../dropdown';
export interface NavContextType {
isCollapsed?: boolean;
mode?: NavProps['mode'];
openKeys?: ItemKey[];
onCollapseChange?: NavProps['onCollapseChange'];
prefixCls?: string;
selectedKeys?: ItemKey[];
toggleIconPosition?: string;
selectedKeysIsControlled?: boolean;
openKeysIsControlled?: boolean;
limitIndent?: boolean;
isInSubNav?: boolean;
locale?: Locale['Navigation'];
subNavMotion?: NavProps['subNavMotion'];
subNavCloseDelay?: NavProps['subNavCloseDelay'];
subNavOpenDelay?: NavProps['subNavOpenDelay'];
canUpdateOpenKeys?: boolean;
renderWrapper?: NavProps['renderWrapper'];
getPopupContainer?: DropdownProps['getPopupContainer'];
tooltipShowDelay?: number;
tooltipHideDelay?: number;
}
declare const NavContext: React.Context<NavContextType>;
export default NavContext;