@kiwicom/orbit-components
Version:
<div align="center"> <a href="https://orbit.kiwi" target="_blank"> <img alt="orbit-components" src="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components.png" srcset="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components@2x.png 2x"
32 lines (27 loc) • 773 B
Flow
// @flow
import type { Globals } from "../common/common.js.flow";
type Type = "primary" | "secondary";
type Size = "small" | "normal" | "large";
export type Props = {|
+children?: React$Node,
+component?: string | React$Node,
+onClick?: (
e: SyntheticEvent<HTMLButtonElement> | SyntheticKeyboardEvent<HTMLDivElement>,
) => void | Promise<any>,
+disabled?: boolean,
+block?: boolean,
+external?: boolean,
+type?: Type,
+size?: Size,
+href?: string,
+width?: number,
+icon?: React$Node,
+iconLeft?: React$Node,
+iconRight?: React$Node,
+circled?: boolean,
+submit?: boolean,
+transparent?: boolean,
...Globals,
|};
declare export var StyledButtonLink: React$ComponentType<Props>;
declare export default React$ComponentType<Props>;