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.

31 lines (26 loc) 1.07 kB
// @flow /* DOCUMENTATION: https://orbit.kiwi/components/card/ */ import type { spaceAfter } from "../common/getSpacingToken/index"; import type { Globals } from "../common/common.js.flow"; import typeof CardSectionType from "./CardSection/index.js.flow"; import typeof CardSectionHeaderType from "./CardSection/CardSectionHeader/index.js.flow"; import typeof CardSectionContentType from "./CardSection/CardSectionContent/index.js.flow"; import typeof CardHeaderType from "./CardHeader/index.js.flow"; export type Props = {| +children?: React$Node, +closable?: boolean, +onClose?: (ev: SyntheticEvent<HTMLButtonElement>) => void | Promise<any>, ...Globals, ...spaceAfter, |}; export type State = {| expandedSections: Array<number>, initialExpandedSections: Array<number>, |}; declare export default React$ComponentType<Props>; declare export var CardHeader: CardHeaderType; declare export var CardSection: CardSectionType; declare export var CardSectionHeader: CardSectionHeaderType; declare export var CardSectionContent: CardSectionContentType;