npm.io
2.1.6 • Published 2 years ago

@types/react-svg-inline

Licence
MIT
Version
2.1.6
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/react-svg-inline

Summary

This package contains type definitions for react-svg-inline (https://github.com/MoOx/react-svg-inline).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-svg-inline.

index.d.ts

/// <reference types="react" />

declare namespace svgInline {
    interface SVGInlineProps {
        svg: string;
        className?: string | undefined;
        classSuffix?: string | undefined;
        component?: React.ElementType | undefined;
        fill?: string | undefined;
        cleanup?:
            | boolean
            | Array<
                | "title"
                | "desc"
                | "comment"
                | "defs"
                | "width"
                | "height"
                | "fill"
                | "sketchMSShapeGroup"
                | "sketchMSPage"
                | "sketchMSLayerGroup"
            >
            | undefined;
        cleanupExceptions?:
            | Array<
                | "title"
                | "desc"
                | "comment"
                | "defs"
                | "width"
                | "height"
                | "fill"
                | "sketchMSShapeGroup"
                | "sketchMSPage"
                | "sketchMSLayerGroup"
            >
            | undefined;
        width?: string | undefined;
        height?: string | undefined;
        accessibilityLabel?: string | undefined;
        accessibilityDesc?: string | undefined;
    }
    type SVGInline = React.ComponentClass<SVGInlineProps>;
}

declare const svgInline: svgInline.SVGInline;
export = svgInline;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by kiyopikko.