@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.
37 lines (32 loc) • 684 B
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/badge/
*/
import * as React from "react";
import type { Carrier } from "../CarrierLogo";
import type { Globals } from "../common/common.js.flow";
export type Type =
| "neutral"
| "dark"
| "info"
| "success"
| "warning"
| "critical"
| "white"
| "infoInverted"
| "criticalInverted"
| "successInverted"
| "warningInverted"
| "bundleBasic"
| "bundleMedium"
| "bundleTop";
export type Props = {|
+children?: React.Node,
+carriers?: Carrier[],
+border?: boolean,
+type?: Type,
+icon?: React.Node,
+ariaLabel?: string,
...Globals,
|};
declare export default React.ComponentType<Props>;