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

8 lines (7 loc) 241 B
/// <reference types="react" /> import { IconData } from './types'; export declare function SpriteSheet({ icons, spriteSheetId, embeddedSSR, }: { icons: IconData[]; spriteSheetId?: string; embeddedSSR?: boolean; }): JSX.Element;