UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

11 lines (10 loc) 381 B
import { ChartState } from "./state"; export type ChartHookOptions = { /** Callback that triggers when the clearSelection function is called. */ onClearSelection?: () => void; }; /** * useChartState is a hook that creates and manages a Chart's state on the * Airplane context */ export declare const useChartState: (id: string, options: ChartHookOptions) => ChartState;