# @types/react-svg-inline

> TypeScript definitions for react-svg-inline

Latest version **2.1.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-svg-inline
pnpm add @types/react-svg-inline
yarn add @types/react-svg-inline
bun add @types/react-svg-inline
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.1.6 |
| Published | 2023-11-07 |
| First published | 2018-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51375 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-svg-inline
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-svg-inline
- npm.io page: https://npm.io/package/@types/react-svg-inline

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 2.1.6 (latest) — 2023-11-07
- 2.1.3 (ts3.7) — 2021-09-29
- 2.1.2 (ts3.6) — 2021-07-08
- 2.1.1 (ts2.8) — 2018-08-06
- 2.1.0 (ts2.6) — 2018-07-02
- 2.1.5 — 2023-10-18
- 2.1.4 — 2023-09-27

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-svg-inline/index.d.ts)
````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 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [kiyopikko](https://github.com/kiyopikko).

---
_Source: https://npm.io/package/@types/react-svg-inline · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
