@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.
33 lines (28 loc) • 668 B
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/badge/
*/
import * as React from "react";
import type { StyledComponent } from "styled-components";
import type { Globals } from "../common/common.js.flow";
export type Type =
| "neutral"
| "dark"
| "info"
| "success"
| "warning"
| "critical"
| "white"
| "infoInverted"
| "criticalInverted"
| "successInverted"
| "warningInverted";
export type Props = {|
+children?: React.Node,
+type?: Type,
+icon?: React.Node,
+ariaLabel?: string,
...Globals,
|};
declare export var StyledBadge: StyledComponent<any, any, HTMLElement>;
declare export default React.ComponentType<Props>;