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 |