UNPKG

455 BTypeScriptView Raw
1import React, { AriaAttributes } from 'react';
2import type { CSSProperties, ReactElement } from 'react';
3export declare type NativeProps<S extends string = never> = {
4 className?: string;
5 style?: CSSProperties & Partial<Record<S, string>>;
6 tabIndex?: number;
7} & AriaAttributes;
8export declare function withNativeProps<P extends NativeProps>(props: P, element: ReactElement): React.ReactElement<any, string | React.JSXElementConstructor<any>>;