@visactor/react-vtable
Version:
The react version of VTable
9 lines (8 loc) • 460 B
TypeScript
import React from 'react';
export interface ContainerProps {
style?: React.CSSProperties;
className?: string;
width?: number | string;
height?: number | string;
}
export default function withContainer<Props extends ContainerProps, CompProps>(Comp: typeof React.Component<any, CompProps>, name?: string, getProps?: (props: any) => CompProps): React.ForwardRefExoticComponent<React.PropsWithoutRef<CompProps & Props> & React.RefAttributes<any>>;