Outlook_Addin_LLM/node_modules/@fluentui/react-hooks/lib-commonjs/useId.d.ts

10 lines
410 B
TypeScript

/**
* Hook to generate a unique ID in the global scope (spanning across duplicate copies of the same library).
*
* @param prefix - Optional prefix for the ID
* @param providedId - Optional id provided by a parent component. Defaults to the provided value if present,
* without conditioning the hook call
* @returns The ID
*/
export declare function useId(prefix?: string, providedId?: string): string;