1.17.0 • Published 5 months ago

@asphalt-react/svg-normalizer v1.17.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
5 months ago

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.

typerequireddefault
nodetrueN/A

size

Required dimensions of svg

typerequireddefault
arrayOftrue