@instructure/ui-react-utils
Version:
A React utility library made by Instructure Inc.
26 lines • 1.1 kB
TypeScript
import React from 'react';
type DeterministicIdProviderValue = Map<string, number>;
type DeterministicIdProviderProps = React.PropsWithChildren<{
instanceCounterMap?: DeterministicIdProviderValue;
}>;
/**
* ---
* category: components/utilities
* ---
* WARNING: providing the `instanceCounterMap` prop will result in unexpected behaviour. DO NOT USE IT!
*
* DEPRECATED: the `instanceCounterMap` prop is deprecated. You don't need to supply the
* `instanceCounterMap` to the component. It handles it internally.
*
* This is utility component for wrapping components with `DeterministicIdContext.Provider`
* See detailed documentation about how to use it: [InstUISettingsProvider](/#InstUISettingsProvider)
*/
declare const DeterministicIdContextProvider: {
({ children, instanceCounterMap }: DeterministicIdProviderProps): React.JSX.Element;
defaultProps: {
instanceCounterMap: DeterministicIdProviderValue;
};
};
export { DeterministicIdContextProvider };
export type { DeterministicIdProviderValue };
//# sourceMappingURL=DeterministicIdContextProvider.d.ts.map