acud
Version:
acg react 组件库
30 lines (29 loc) • 939 B
TypeScript
/**
* @file
* @author dailin01
*/
import React from 'react';
declare const LinkTypes: ["default", "primary", "text"];
export type LinkType = typeof LinkTypes[number];
declare const SizeTypes: ["small", "medium"];
export type SizeType = typeof SizeTypes[number];
export interface BaseLinkProps {
icon?: React.ReactNode;
type?: LinkType;
size?: SizeType;
disabled?: boolean;
prefixCls?: string;
className?: string;
style?: React.CSSProperties;
children?: React.ReactNode;
}
export type NativeLinkProps = {
href: string;
target?: string;
onClick?: React.MouseEventHandler<HTMLElement>;
} & BaseLinkProps & Omit<React.LinkHTMLAttributes<any>, 'type' | 'onClick'>;
export type LinkProps = Partial<NativeLinkProps>;
interface CompoundedComponent extends React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLElement>> {
}
declare const Link: CompoundedComponent;
export default Link;