@fortawesome/react-fontawesome
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -9,2 +9,10 @@ # Change Log | ||
## [0.1.7](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.7) - 2019-10-19 | ||
### Fixed | ||
- Add DOM attributes to FontAwesomeIconProps to Typescript definitions #151 #196 | ||
--- | ||
## [0.1.6](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.6) - 2019-10-10 | ||
@@ -11,0 +19,0 @@ |
/// <reference types="react" /> | ||
import { CSSProperties } from 'react' | ||
import { CSSProperties, DOMAttributes } from 'react' | ||
import { | ||
@@ -20,3 +20,6 @@ Transform, | ||
export interface FontAwesomeIconProps { | ||
// This is identical to the version of Omit in Typescript 3.5. It is included for compatibility with older versions of Typescript. | ||
type BackwardCompatibleOmit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>; | ||
export interface FontAwesomeIconProps extends BackwardCompatibleOmit<DOMAttributes<SVGSVGElement>, 'children' | 'mask'> { | ||
icon: IconProp | ||
@@ -23,0 +26,0 @@ mask?: IconProp |
{ | ||
"name": "@fortawesome/react-fontawesome", | ||
"description": "Official React component for Font Awesome 5", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"main": "index.js", | ||
@@ -24,3 +24,4 @@ "module": "index.es.js", | ||
"Calvin Freitas <github.com/calvinf>", | ||
"Bill Parrott <github.com/chimericdream>" | ||
"Bill Parrott <github.com/chimericdream>", | ||
"baelec <github.com/baelec>" | ||
], | ||
@@ -27,0 +28,0 @@ "license": "MIT", |
@@ -70,3 +70,5 @@ <a href="https://fontawesome.com"> | ||
## Installation | ||
Using NPM: | ||
``` | ||
@@ -77,3 +79,5 @@ $ npm i --save @fortawesome/fontawesome-svg-core | ||
``` | ||
Or with Yarn: | ||
``` | ||
@@ -374,2 +378,3 @@ $ yarn add @fortawesome/fontawesome-svg-core | ||
``` | ||
Note that icon size can be controlled with the CSS `font-size` attribute, and `FontAwesomeIcon`'s `size` prop determines icon size relative to the current `font-size`. | ||
@@ -576,2 +581,3 @@ | ||
| <img src="https://github.com/chimericdream.png?size=72" /> | Bill Parrott | [@chimericdream](https://github.com/chimericdream) | | ||
| <img src="https://github.com/baelec.png?size=72" /> | baelec | [@baelec](https://github.com/baelec) | | ||
@@ -578,0 +584,0 @@ If we've missed someone (which is quite likely) submit a Pull Request to us and we'll get it resolved. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51640
634
594