@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"
33 lines (29 loc) • 687 B
Flow
// @flow
import type { spaceAfter } from "../common/getSpacingToken/index";
import type { Globals } from "../common/common.js.flow";
type Align = "left" | "center" | "right";
type Element = "p" | "span" | "div";
type Type =
| "primary"
| "secondary"
| "attention"
| "info"
| "success"
| "warning"
| "critical"
| "white";
type Size = "large" | "normal" | "small";
type Weight = "regular" | "bold";
export type Props = {|
+type?: Type,
+size?: Size,
+weight?: Weight,
+align?: Align,
+italic?: boolean,
+uppercase?: boolean,
+element?: Element,
+children: React$Node,
...Globals,
...spaceAfter,
|};
declare export default React$ComponentType<Props>;