@redocly/theme
Version:
Shared UI components lib
7 lines (6 loc) • 333 B
TypeScript
/**
* Returns a function that appends a per-component-instance suffix to SVG ids.
* This prevents collisions when multiple identical SVGs are rendered on the same page,
* which can break `url(#...)` references (gradients, clipPath, masks, filters) on reflow.
*/
export declare function useUniqueSvgIds(): (id: string) => string;