@instructure/ui-react-utils
Version:
A React utility library made by Instructure Inc.
12 lines • 556 B
TypeScript
/**
* Removes disallowed keys from the given object. Allowed keys: Valid props for
* HTML or SVG elements (see https://github.com/emotion-js/emotion/tree/main/packages/is-prop-valid)
*
* Disallowed is anything else and 'style', 'styles', 'className', 'children',
* 'makeStyles', 'deterministicId'
* @param props The props to process
*/
declare function passthroughProps<P extends Record<string, unknown>>(props: P): Record<string, unknown>;
export { passthroughProps };
export default passthroughProps;
//# sourceMappingURL=passthroughProps.d.ts.map