@thlmenezes/ui-react
Version:
Devopness Design System React Components - Painless essential DevOps to everyone
17 lines (16 loc) • 788 B
TypeScript
import { HTMLProps, default as React } from 'react';
import { Color } from '../../../colors';
import { IconProps } from '../Icon';
import { Unwrap } from '../../types';
type LinkProps = Omit<HTMLProps<HTMLAnchorElement>, 'href' | 'target' | 'color' | 'ref' | 'as'> & {
color?: Color;
to?: HTMLProps<HTMLAnchorElement>['href'];
target?: '_blank' | '_self';
iconProps?: Unwrap<Omit<IconProps, 'name'>>;
hideUnderline?: boolean;
hideUnderlineOnHover?: boolean;
hideExternalUrlIcon?: boolean;
};
declare const Link: ({ target, children, color, rel, to: href, hideUnderline, hideUnderlineOnHover, hideExternalUrlIcon, iconProps, ...props }: React.PropsWithChildren<LinkProps>) => import("react/jsx-runtime").JSX.Element;
export type { LinkProps };
export { Link };