@theguild/components
Version:
28 lines (25 loc) • 984 B
text/typescript
import * as react from 'react';
import * as url from 'url';
import { ILink } from '../types/components.mjs';
import 'next/image';
import 'next/link';
import 'react-player';
type AnchorProps = ILink;
declare const Anchor: react.ForwardRefExoticComponent<{
href: string | url.UrlObject;
as?: string | url.UrlObject;
replace?: boolean;
scroll?: boolean;
shallow?: boolean;
passHref?: boolean;
prefetch?: boolean | null;
locale?: string | false;
legacyBehavior?: boolean;
onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
} & Pick<react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "style" | "title" | "target" | "rel" | "className"> & {
children: react.ReactNode;
newWindow?: boolean;
} & react.RefAttributes<HTMLAnchorElement>>;
export { Anchor, type AnchorProps };