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.

54 lines (47 loc) 1.21 kB
// @flow /* DOCUMENTATION: https://orbit.kiwi/components/button/ */ import type { ReactComponentStyled } from "styled-components"; import type { Globals, Ref, Component } from "../common/common.js.flow"; import type { spaceAfter } from "../common/getSpacingToken/index"; export type Type = | "primary" | "secondary" | "info" | "success" | "warning" | "critical" | "facebook" | "google" | "white"; export type Size = "small" | "normal" | "large"; export type Props = {| ...Globals, ...Ref, ...spaceAfter, +children?: React$Node, +component?: Component, +href?: string, +onClick?: (e: SyntheticEvent<HTMLButtonElement>) => void | Promise<any>, +external?: boolean, +circled?: boolean, +bordered?: boolean, +disabled?: boolean, +block?: boolean, +loading?: boolean, +type?: Type, +size?: Size, +width?: number, +submit?: boolean, +icon?: React$Node, +iconLeft?: React$Node, +iconRight?: React$Node, +tabIndex?: string, +ariaExpanded?: boolean, +ariaControls?: string, +role?: string, +title?: string | (any => string), |}; declare export var StyledButton: ReactComponentStyled<Props>; declare export default React$ComponentType<Props>;