Files
DefinitelyTyped/types/react-svg-inline/index.d.ts
Kiyohiko Heima 5218288661 Add react-svg-inline types (#26987)
* Add react-svg-inline types

* Convert indent to space
2018-07-02 10:30:02 -07:00

28 lines
1.1 KiB
TypeScript

// Type definitions for react-svg-inline 2.1
// Project: https://github.com/MoOx/react-svg-inline
// Definitions by: kiyopikko <https://github.com/kiyopikko>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
/// <reference types="react" />
declare namespace svgInline {
interface SVGInlineProps {
svg: string;
className?: string;
classSuffix?: string;
component?: React.ReactNode;
fill?: string;
cleanup?: boolean | Array<"title" | "desc" | "comment" | "defs" | "width" | "height" | "fill" | "sketchMSShapeGroup" | "sketchMSPage" | "sketchMSLayerGroup">;
cleanupExceptions?: Array<"title" | "desc" | "comment" | "defs" | "width" | "height" | "fill" | "sketchMSShapeGroup" | "sketchMSPage" | "sketchMSLayerGroup">;
width?: string;
height?: string;
accessibilityLabel?: string;
accessibilityDesc?: string;
}
type SVGInline = React.ComponentClass<SVGInlineProps>;
}
declare const svgInline: svgInline.SVGInline;
export = svgInline;