@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.
40 lines (31 loc) • 787 B
Flow
// @flow
import * as React from "react";
import type { Globals } from "../common/common.js.flow";
import defaultTheme from "../defaultTheme";
export type Size = "small" | "medium" | "large";
export type Color =
| "primary"
| "secondary"
| "tertiary"
| "info"
| "success"
| "warning"
| "critical";
export type Props = {|
...Globals,
+size?: Size,
+color?: Color,
+className?: string,
+customColor?: string,
+ariaHidden?: boolean,
+reverseOnRtl?: boolean,
+ariaLabel?: string,
|};
export type FactoryProps = {|
+viewBox: string,
+children: React.Node,
...Props,
|};
declare export default React.ComponentType<FactoryProps>;
export type GetSize = (size: Size) => ({| theme: typeof defaultTheme |}) => string;
declare export var getSize: GetSize;