2.0.0-rc.4 • Published 9 months ago
@asphalt-react/svg-normalizer v2.0.0-rc.4
SVG Normalizer
⚠️ Designed for Asphalt React component packages. Use at your own risk, if using externally.
SvgNormalizer resizes and changes the color of SVG's to your desired dimensions (height and width) and color. 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 dimension={{ height: "14", width: "14" }} color="#000000">
<AddColumnLeft />
</SvgNormalizer>
)
}
Props
children
SVG or SVG wrapped React component.
type | required | default |
---|---|---|
node | true | N/A |
dimension
SVG dimensions contains height and width
type | required | default |
---|---|---|
arrayOf | false |
color
SVG color
type | required | default |
---|---|---|
string | false |
2.0.0-rc.4
9 months ago
2.0.0-rc.0
11 months ago
2.0.0-alpha.29
2 years ago
2.0.0-alpha.19
2 years ago
2.0.0-alpha.16
2 years ago
2.0.0-alpha.15
2 years ago
2.0.0-alpha.13
2 years ago
2.0.0-alpha.8
3 years ago
1.17.0
3 years ago
2.0.0-alpha.6
3 years ago
2.0.0-alpha.7
3 years ago
2.0.0-alpha.3
3 years ago
1.14.1
3 years ago
2.0.0-alpha.1
3 years ago
1.13.0
3 years ago