UNPKG

@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 (27 loc) 626 B
// @flow /* DOCUMENTATION: https://orbit.kiwi/components/badge/ */ import { ReactComponentStyled } 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: ReactComponentStyled<Props>; declare export default React$ComponentType<Props>;