@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.
47 lines (38 loc) • 1.16 kB
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/textlink/
*/
import * as React from "react";
import type { Interpolation } from "styled-components";
import type { Globals, Component } from "../common/common.js.flow";
import type { ThemeProps } from "../defaultTheme";
export type Type = "primary" | "secondary";
type Size = "large" | "normal" | "small";
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,
|};
export type GetLinkStyle = GetLinkStyleProps => Interpolation[];
declare export var getLinkStyle: GetLinkStyle;
declare export var StyledTextLink: React.ComponentType<Props>;
declare export default React.ComponentType<Props>;