UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

9 lines 348 B
/** * Generate a unique id to be used in a component. If an `id` is provided, it * will be used instead. * * @param id - An optional value to be used instead of generating a unique id. * Useful when accepting an optional `id` as a prop in a component. */ export declare function useId(id?: string): string; //# sourceMappingURL=useId.d.ts.map