UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

41 lines (34 loc) 1 kB
// @flow /* DOCUMENTATION: https://orbit.kiwi/components/textlink/ */ import * as React from "react"; import type { Globals, Component } from "../common/common.js.flow"; import type { ThemeProps } from "../defaultTheme.js.flow"; export type Type = "primary" | "secondary" | "info" | "success" | "warning" | "critical" | "white"; type Size = "large" | "normal" | "small" | "extraLarge"; export type Props = {| +ariaCurrent?: string, +children: React.Node, +href?: string, +iconLeft?: React.Node, +iconRight?: React.Node, +onClick?: (SyntheticEvent<HTMLLinkElement>) => void | Promise<any>, +external?: boolean, +type?: Type, +size?: Size, +rel?: string, +tabIndex?: string | number, +asComponent?: Component, +stopPropagation?: boolean, +title?: string, +standAlone?: boolean, +noUnderline?: boolean, ...Globals, |}; export type GetLinkStyleProps = {| type: Type, noUnderline?: boolean, ...ThemeProps, |}; declare export default React.ComponentType<Props>;