Merge pull request #21 from ianmiller347/development
add fill and color to readme
This commit is contained in:
commit
54a049f22e
12
README.md
12
README.md
@ -21,6 +21,18 @@ e.g.: `<FeatherIcon icon="copy" size="24" />` or `<... size={24} />`
|
|||||||
|
|
||||||
Sizes can always be easily overridden by CSS.
|
Sizes can always be easily overridden by CSS.
|
||||||
|
|
||||||
|
**Setting fill and other properties**
|
||||||
|
|
||||||
|
Fill defaults to none, but can be passed as a React prop
|
||||||
|
|
||||||
|
`<FeatherIcon icon="heart" fill="red" />`
|
||||||
|
|
||||||
|
Addtionally, you can add any other SVG tag properties, and they will pass through.
|
||||||
|
|
||||||
|
**Setting colors**
|
||||||
|
|
||||||
|
Use CSS. The icons default to use currentColor. This is equivalent to whatever text color is being used in the icon's container.
|
||||||
|
|
||||||
#### Dynamically change icons
|
#### Dynamically change icons
|
||||||
**Toggle icon example:**
|
**Toggle icon example:**
|
||||||
```javascript
|
```javascript
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user