import { ElementType, ReactEventHandler } from 'react'; import { IconName } from '../Icon/Icon.types'; import { TextSize, TextWeight } from '../Text'; export interface LinkProps { size?: TextSize; weight?: TextWeight; onClick?: ReactEventHandler; /** Link text. */ children?: React.ReactNode; /** Icon shown after the text. */ icon?: IconName; /** Element or component to render instead of `a`. */ component?: T; }