@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.
31 lines (27 loc) • 855 B
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/card/
*/
import * as React from "react";
import type { StyledComponent } from "styled-components";
import type { spaceAfter } from "../common/getSpacingToken";
import type { Globals } from "../common/common.js.flow";
import typeof CardSectionType from "./CardSection";
import type { As } from "../Heading";
export type Props = {|
+children?: React.Node,
+title?: React.Node,
+titleAs?: As,
+description?: React.Node,
+icon?: React.Node,
+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;
declare export var StyledCard: StyledComponent<any, any, HTMLElement>;