@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.
17 lines (11 loc) • 354 B
Flow
// @flow
import * as React from "react";
export type Context = {|
+onExpand?: () => void | Promise<any>,
+expanded: boolean,
+loading?: boolean,
|};
declare export var accordionDefault: Context;
declare export var context: React.Context<Context>;
declare export function useAccordion(): Context;
export const { Consumer, Provider } = context;