Inline SVG Unique ID

JSON →
library 1.5.0 ·javascript
verified May 27, 2026

A Babel plugin (v1.5.0) that transforms inline React SVG components at build time to replace hardcoded definition IDs with runtime-generated unique IDs, preventing ID collisions when the same SVG is used multiple times on a page. Requires the companion runtime package @inline-svg-unique-id/react. Stable, updated sporadically, maintained by a single contributor. Key differentiator: SSR-friendly with a context provider for custom ID prefixes, unlike alternatives that rely on random hashes without SSR support.

total hits 19
actors 6 distinct systems
last hit 2d ago AhrefsBot
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
Humans
1

top countries 🇩🇪 Germany · 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · PH