@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.
24 lines (18 loc) • 739 B
TypeScript
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
import * as React from "react";
import * as Common from "../common/common";
import AlertButton from "./AlertButton";
type Type = "info" | "success" | "warning" | "critical";
export interface Props extends Common.Global, Common.SpaceAfter {
readonly type?: Type;
readonly children?: React.ReactNode;
readonly title?: Common.Translation;
readonly icon?: boolean | React.ReactElement;
readonly closable?: boolean;
readonly inlineActions?: React.ReactNode;
readonly onClose?: Common.Callback;
readonly suppressed?: boolean;
}
declare const Alert: React.FunctionComponent<Props>;
export { Alert, Alert as default, AlertButton };