UNPKG

853 BTypeScriptView Raw
1import * as React from 'react';
2import { AntAnchor } from './Anchor';
3import { ConfigConsumerProps } from '../config-provider';
4export interface AnchorLinkProps {
5 prefixCls?: string;
6 href: string;
7 target?: string;
8 title: React.ReactNode;
9 children?: React.ReactNode;
10 className?: string;
11}
12declare class AnchorLink extends React.Component<AnchorLinkProps, any, AntAnchor> {
13 static defaultProps: {
14 href: string;
15 };
16 static contextType: React.Context<AntAnchor>;
17 context: AntAnchor;
18 componentDidMount(): void;
19 componentDidUpdate({ href: prevHref }: AnchorLinkProps): void;
20 componentWillUnmount(): void;
21 handleClick: (e: React.MouseEvent<HTMLElement>) => void;
22 renderAnchorLink: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element;
23 render(): JSX.Element;
24}
25export default AnchorLink;