UNPKG

680 BTypeScriptView Raw
1import { AnchorHTMLAttributes, FunctionComponent, MouseEvent } from 'react';
2export interface LinkStylesProps {
3 secondary?: boolean;
4 tertiary?: boolean;
5 nochrome?: boolean;
6 inverse?: boolean;
7 isButton?: boolean;
8}
9export interface LinkInnerProps {
10 withArrow?: boolean;
11 containsIcon?: boolean;
12}
13declare type AProps = AnchorHTMLAttributes<HTMLAnchorElement>;
14export interface LinkProps extends LinkInnerProps, LinkStylesProps {
15 cancel?: boolean;
16 className?: string;
17 style?: object;
18 onClick?: (e: MouseEvent) => void;
19 href?: string;
20}
21export declare const Link: FunctionComponent<LinkProps & AProps>;
22export {};