UNPKG

@visactor/react-vchart

Version:

The react version of VChart 4.x

11 lines (10 loc) 490 B
import type { StringOrNumber } from '@visactor/vchart'; import React from 'react'; export interface ContainerProps { style?: React.CSSProperties; className?: string; width?: number | string; height?: number | string; id?: StringOrNumber; } export default function withContainer<P extends ContainerProps>(Comp: React.ComponentType<any>, name?: string, getProps?: (props: any) => any): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<any>>;