@asphalt-react/svg-normalizer

1.17.0 • Public • Published

SVG Normalizer

⚠️ Designed for Asphalt React component packages. Use at your own risk, if using externally.

Resize SVGs according to desired dimensions (height and width). Supports SVGs and SVG wrapped React components.

Usage

import SvgNormalizer from "@asphalt-react/svg-normalizer"
import { AddColumnLeft } from "@asphalt-react/iconpack"

function App() {
  return (
    <SvgNormalizer size={{ height: "14", width: "14" }}>
      <AddColumnLeft />
    </SvgNormalizer>
  )
}

Props

children

SVG or SVG wrapped React component.

type required default
node true N/A

size

Required dimensions of svg

type required default
arrayOf true

Readme

Keywords

Package Sidebar

Install

npm i @asphalt-react/svg-normalizer

Weekly Downloads

148

Version

1.17.0

License

UNLICENSED

Unpacked Size

4.15 kB

Total Files

4

Last publish

Collaborators

  • shripriya.bhat
  • dawn29
  • itsjay26
  • sayantan1211
  • abhinav.preetu