UNPKG

yantd

Version:

React component library

26 lines (25 loc) 855 B
import * as React from 'react'; import { YantAnchor } from "./type"; import { ConfigConsumerProps } from '../config-provider'; export interface AnchorLinkProps { prefixCls?: string; href: string; target?: string; title: React.ReactNode; children?: React.ReactNode; className?: string; } declare class AnchorLink extends React.Component<AnchorLinkProps, any, YantAnchor> { static defaultProps: { href: string; }; static contextType: React.Context<YantAnchor>; context: YantAnchor; componentDidMount(): void; componentDidUpdate({ href: prevHref }: AnchorLinkProps): void; componentWillUnmount(): void; handleClick: (e: React.MouseEvent<HTMLElement>) => void; renderAnchorLink: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default AnchorLink;