@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.
24 lines (18 loc) • 633 B
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/loading/
*/
import * as React from "react";
import type { ReactComponentStyled } from "styled-components";
import type { Globals, Translation } from "../common/common.js.flow";
type Type = "buttonLoader" | "boxLoader" | "searchLoader" | "pageLoader" | "inlineLoader";
export type Props = {|
+children?: React.Node,
+loading?: boolean,
+type?: Type,
+text?: Translation,
...Globals,
|};
declare export var StyledSpinner: ReactComponentStyled<any>;
declare export var StyledLoading: ReactComponentStyled<any>;
declare export default React.ComponentType<Props>;