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.

23 lines (19 loc) 583 B
// @flow /* DOCUMENTATION: https://orbit.kiwi/components/alert-message/ */ import type { spaceAfter } from "../common/getSpacingToken/index"; import type { Globals, Translation } from "../common/common.js.flow"; type Type = "info" | "success" | "warning" | "critical"; export type Props = {| +type?: Type, +children?: React$Node, +title?: Translation, +icon?: React$Element<any> | boolean, +closable?: boolean, +inlineActions?: React$Node, +onClose?: () => void | Promise<any>, ...Globals, ...spaceAfter, |}; declare export default React$ComponentType<Props>;