# react-svg-raw

> React Component for wrapper-less inline SVGs

Latest version **1.0.1** (published 2018-02-26) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install react-svg-raw
pnpm add react-svg-raw
yarn add react-svg-raw
bun add react-svg-raw
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-02-26 |
| First published | 2018-02-26 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | silverwind |
| Maintainers | silverwind |
| Keywords | react, svg, inline, raw, pure, no wrapper, wrapper-less |

## Links

- npm: https://www.npmjs.com/package/react-svg-raw
- Repository: https://github.com/silverwind/react-svg-raw
- Homepage: https://github.com/silverwind/react-svg-raw#readme
- Issues: https://github.com/silverwind/react-svg-raw/issues
- npm.io page: https://npm.io/package/react-svg-raw

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-02-26
- 1.0.0 — 2018-02-26

## README

# react-svg-raw
[![](https://img.shields.io/npm/v/react-svg-raw.svg?style=flat)](https://www.npmjs.org/package/react-svg-raw) [![](https://img.shields.io/npm/dm/react-svg-raw.svg)](https://www.npmjs.org/package/react-svg-raw) [![](https://api.travis-ci.org/silverwind/react-svg-raw.svg?style=flat)](https://travis-ci.org/silverwind/react-svg-raw)
> React Component for wrapper-less inline SVGs

Unlike [other](https://github.com/MoOx/react-svg-inline) [modules](https://github.com/gilbarbara/react-inlinesvg), this module will not create a wrapper element around the SVG but instead render it as-is.

Every prop on the component except `src` will be copied to the resulting SVG. No effort on post-processing the SVG is taken by this module.

## Install

```console
$ npm i react-svg-raw
```

## Usage
```jsx
import React from "react";
import SVG from "react-svg-raw";

export default () => (
  <main>
    <SVG src={"<svg></svg>"}/>
  </main>
)

```

© [silverwind](https://github.com/silverwind), distributed under BSD licence

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