@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.
8 lines (7 loc) • 409 B
TypeScript
import React from 'react';
import Anchor, { AnchorProps, AnchorState } from '.';
export type AnchorContextType = Pick<AnchorProps, 'showTooltip' | 'position' | 'autoCollapse' | 'size'> & Pick<AnchorState, 'activeLink'> & Pick<Anchor, 'addLink' | 'removeLink' | 'childMap'> & {
onClick: Anchor['handleClick'];
};
declare const AnchorContext: React.Context<AnchorContextType>;
export default AnchorContext;