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

4 lines (3 loc) 268 B
import { IconsCache } from './index'; export declare const createSpriteSheetString: (knownIcons: IconsCache) => Promise<string>; export declare const renderSpriteSheetToString: (markupString: string, knownIcons: IconsCache, spriteSheetId?: string) => Promise<string>;