@baseplate-dev/ui-components
Version:
Shared UI component library
8 lines • 433 B
TypeScript
import type React from 'react';
/**
* Typed wrapper around forwardRef for generic components
*
* Taken from https://fettblog.eu/typescript-react-generic-forward-refs/
*/
export declare function genericForwardRef<T, P = {}>(render: (props: P, ref: React.Ref<T>) => React.ReactElement | null, displayName?: string): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
//# sourceMappingURL=generic-forward-ref.d.ts.map