UNPKG

react-lazy-svg

Version:

react-lazy-svg is a simple way to use SVGs with the performance benefits of a sprite-sheet and svg css styling possibilities. Without bloating the bundle. It automatically creates a sprite-sheet for all used SVGs on the client but also provides the option

10 lines (9 loc) 150 B
export interface IconData { id: string; svgString: { __html: string; }; attributes: { [key: string]: string; }; }