UNPKG

385 BTypeScriptView Raw
1// TypeScript Version: 4.1
2
3export type Attributes = Record<string, string>;
4
5export type Props = Record<string, string> & {
6 style: Record<string, string>;
7};
8
9/**
10 * Converts HTML/SVG DOM attributes to React props.
11 *
12 * @param attributes - HTML/SVG DOM attributes.
13 * @return - React props.
14 */
15export default function attributesToProps(attributes: Attributes): Props;