UNPKG

@adobe/react-spectrum-charts

Version:

Declarative library for composing Spectrum visualizations in React.

12 lines 605 B
import { JSXElementConstructor, ReactElement, ReactNode } from 'react'; import { ChartPopoverOptions, Datum } from '@spectrum-charts/vega-spec-builder'; export type PopoverHandler = (datum: Datum, close: () => void) => ReactNode; /** * Props for the ChartPopover component */ export interface ChartPopoverProps extends ChartPopoverOptions { /** Callback used to control the content rendered in the popover */ children?: PopoverHandler; } export type ChartPopoverElement = ReactElement<ChartPopoverProps, JSXElementConstructor<ChartPopoverProps>>; //# sourceMappingURL=chartPopover.types.d.ts.map