condition-editor
Version:
10 lines (9 loc) • 423 B
TypeScript
import type { CSSProperties, ReactElement } from 'react';
import React from 'react';
export interface NativeProps<S extends string = never> {
className?: string;
style?: CSSProperties & Partial<Record<S, string>>;
tabIndex?: number;
id?: string;
}
export declare function withNativeProps<P extends NativeProps>(props: P, element: ReactElement): ReactElement<any, string | React.JSXElementConstructor<any>>;