@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.
16 lines (10 loc) • 307 B
Flow
// @flow
export type Context = {|
+onExpand?: () => void,
+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;