tdesign-react
Version:
TDesign Component for React
18 lines (17 loc) • 433 B
TypeScript
export interface Item {
/**
* 锚点链接
*/
href: string;
/**
* 锚点描述
*/
title: string;
}
export interface AnchorContextType {
onClick: (link: Item, e: React.MouseEvent<HTMLElement>) => void;
activeItem: string;
registerItem: (href: string) => void;
unregisterItem: (href: string) => void;
}
export declare const AnchorContext: import("react").Context<AnchorContextType>;