UNPKG

@visactor/react-vtable

Version:
18 lines (17 loc) 765 B
import React, { type CSSProperties, type HTMLAttributes, type DetailedHTMLProps } from 'react'; export interface CustomComponentProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, 'className' | 'ref'> { style?: CSSProperties; className?: string; displayMode: 'position' | 'cell'; x?: number; y?: number; width?: number | string; height?: number | string; row?: number; col?: number; anchor?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'; dx?: number | string; dy?: number | string; } export declare const CustomComponent: React.FC<CustomComponentProps>; export default function useMergeProps<PropsType>(componentProps: PropsType, defaultProps: Partial<PropsType>): PropsType;