UNPKG

@smitch/fluid

Version:

A Next/React ui-component libray.

16 lines (15 loc) 642 B
import React from 'react'; import { ChartDataMap, ChartOptionsMap } from './types'; type ChartTypes = keyof ChartDataMap; interface ChartWrapProps<T extends ChartTypes> { title?: string; legendposition?: string; data: ChartDataMap[T]; options?: ChartOptionsMap[T]; chartType: T; className?: string; style?: React.CSSProperties; aspect?: 'landscape' | 'portrait' | 'square' | 'auto'; } declare const ChartWrap: <T extends keyof ChartDataMap>({ data, options, title, legendposition, chartType, aspect, className, style, }: ChartWrapProps<T>) => import("react/jsx-runtime").JSX.Element; export default ChartWrap;