@adobe/react-spectrum-charts
Version:
Declarative library for composing Spectrum visualizations in React.
10 lines • 461 B
TypeScript
import { ReactNode } from 'react';
import { Datum } from '@spectrum-charts/vega-spec-builder';
export type ChildElement<T> = T | string | boolean | Iterable<ReactNode>;
export type Children<T> = ChildElement<T> | ChildElement<T>[];
export type MarkCallback = (datum: Datum) => void;
export interface ClickableChartProps {
/** Callback that will be run when a point/section is clicked */
onClick?: MarkCallback;
}
//# sourceMappingURL=util.types.d.ts.map