UNPKG

@spicy-ui/core

Version:

A themable and extensible React UI library, ready to use out of the box

20 lines (19 loc) 972 B
import * as React from 'react'; import { SxProp } from '../../system'; import { ColorScales } from '../../theme'; import { AsProp, ChildrenProp, LiteralUnion } from '../../types'; export declare type LinkColors = ColorScales; export declare type LinkUnderlineBehaviour = 'default' | 'none' | 'hover'; export interface LinkProps extends Partial<React.AnchorHTMLAttributes<HTMLAnchorElement>>, AsProp, ChildrenProp, SxProp { /** Color of the link. */ color?: LiteralUnion<LinkColors>; /** Hover color of the link. */ hoverColor?: LiteralUnion<LinkColors>; /** Set to `true` to disable the link. */ isDisabled?: boolean; /** Set to `true` to add external `rel` tags. */ isExternal?: boolean; /** Underline behaviour of the link. */ underlineBehaviour?: LinkUnderlineBehaviour; } export declare const Link: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, LinkProps, never>;