UNPKG

449 BTypeScriptView Raw
1import * as React from 'react';
2/**
3 * Given an element tagname and user props, filters the props to only allowed props for the given
4 * element type.
5 * @param tagName - Tag name (e.g. "div")
6 * @param props - Props object
7 * @param excludedPropNames - List of props to disallow
8 */
9export declare function getNativeElementProps<TAttributes extends React.HTMLAttributes<any>>(tagName: string, props: {}, excludedPropNames?: string[]): TAttributes;