UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

26 lines (25 loc) 933 B
import React from 'react'; import { BaseComponentProps } from '../internal/base-component'; import { CancelableEventHandler } from '../internal/events'; export interface LinkProps extends BaseComponentProps { variant?: LinkProps.Variant; fontSize?: LinkProps.FontSize; color?: LinkProps.Color; external?: boolean; target?: string; href?: string; children?: React.ReactNode; ariaLabel?: string; externalIconAriaLabel?: string; onFollow?: CancelableEventHandler; } export declare namespace LinkProps { type Variant = 'primary' | 'secondary' | 'info'; type FontSize = 'body-s' | 'body-m' | 'heading-xs' | 'heading-s' | 'heading-m' | 'heading-l' | 'heading-xl' | 'display-l'; type Color = 'normal' | 'inverted'; interface Ref { focus(): void; } } declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<LinkProps.Ref>>; export default Link;