@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.
30 lines (26 loc) • 832 B
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/card/
*/
import * as React from "react";
import type { spaceAfter } from "../common/getSpacingToken/index.js.flow";
import type { Globals, ObjectProperty } from "../common/common.js.flow";
import typeof CardSectionType from "./CardSection/index.js.flow";
import type { As } from "../Heading/index.js.flow";
export type Props = {|
+children?: React.Node,
+title?: React.Node,
+titleAs?: As,
+margin?: string | number | ObjectProperty,
+description?: React.Node,
+labelClose?: string,
+actions?: React.Node,
+onClose?: () => void | Promise<any>,
+loading?: boolean,
+header?: React.Node,
+dataA11ySection?: string,
...Globals,
...spaceAfter,
|};
declare export default React.ComponentType<Props>;
declare export var CardSection: CardSectionType;