@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.
25 lines (17 loc) • 652 B
Flow
/* eslint-disable flowtype/require-exact-type */
/* we disable it because the RefType does not need to be exact or is incompatible with the React ref */
// @flow
import * as React from "react";
export type Globals = {|
+dataTest?: string,
|};
export type DataAttrs = {|
+dataAttrs?: { [key: string]: ?string | ?boolean },
|};
export type RefType = ?{ current: null | HTMLElement } | ((null | HTMLElement) => mixed);
export type Ref = {|
+ref?: RefType,
|};
export type Translation = React.Element<React.ComponentType<any>> | string;
export type TranslationString = React.Node;
export type Component = string | (() => React.Element<any>);