UNPKG

react-any-attr

Version:

Enables you to create any HTML attribute in React spearing the headache.

8 lines (7 loc) 209 B
import { PropsWithChildren } from 'react'; export interface IAnyAttrOptions { [key: string]: any; } export interface AnyAttrProps extends PropsWithChildren<any> { attributes: IAnyAttrOptions; }