@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 (18 loc) • 704 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";
export interface Props extends Common.Global {
readonly initialExpanded?: boolean;
readonly expanded?: boolean;
readonly label: Common.Translation;
readonly children: React.ReactNode;
readonly actions?: React.ReactNode;
readonly onClick?: (
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
e: React.SyntheticEvent<HTMLDivElement>,
state: boolean,
) => void | Promise<void>;
}
declare const Collapse: React.FunctionComponent<Props>;
export { Collapse, Collapse as default };