react-svg

  • Version 19.1.4
  • Published
  • 82.7 kB
  • 1 dependency
  • MIT license

Install

npm i react-svg
yarn add react-svg
pnpm add react-svg

Overview

A React component that injects SVG into the DOM.

Index

Type Aliases

Type Aliases

type Props

type Props = BaseProps &
React.HTMLAttributes<HTMLWrapperType> &
React.SVGAttributes<SVGWrapperType>;

    type WrapperType

    type WrapperType = HTMLWrapperType | SVGWrapperType;

      Package Files (2)

      Dependencies (1)

      Dev Dependencies (36)

      Peer Dependencies (2)

      Badge

      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/react-svg.

      • Markdown
        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/react-svg)
      • HTML
        <a href="https://www.jsdocs.io/package/react-svg"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>