@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.
19 lines (15 loc) • 464 B
Flow
// @flow
import type { spaceAfter } from "../common/getSpacingToken/index";
import type { Globals } from "../common/common.js.flow";
type Type = "info" | "success" | "warning" | "critical";
export type Props = {|
+type?: Type,
+children?: React$Node,
+title?: string | React$Node,
+icon?: React$Element<any> | boolean,
+closable?: boolean,
+onClose?: () => void,
...Globals,
...spaceAfter,
|};
declare export default React$ComponentType<Props>;