Skip to content

Commit 5b992c6

Browse files
committed
πŸ“ updated readme
1 parent e1aae97 commit 5b992c6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

β€ŽREADME.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The following options can be used to access different designs:
4141

4242
```text
4343
<FileIcon
44-
extension="doc" # only the first 5 characters are displayed
44+
extension="doc" # more than 5 chars can require another fontSize
4545
background="#fff" # use to pass your background color to the component
4646
colorScheme={ ColorScheme.red } # must be in the above format
4747
iconStyle={ IconStyle.normal } # normal / gradient / outline
@@ -53,7 +53,7 @@ The following options can be used to access different designs:
5353
## Migrate from v1 to v2
5454

5555
To migrate from v1 to v2, some props have to be changed.
56-
The props ``smallest``, ``small``, ``medium`` have been removed and the size of the icons can now be variably adjusted via the prop ``size``. The props ``linearGradient`` and ``outline`` have also been removed and the prop ``iconStyle`` is now available. This can be used with the ``IconStyle`` class as shown above. If you want to customize the fontSize use ``fontSize`` property. Now also 5 characters are displayed instead of only 4 characters as before.
56+
The props ``smallest``, ``small``, ``medium`` have been removed and the size of the icons can now be variably adjusted via the prop ``size``. The props ``linearGradient`` and ``outline`` have also been removed and the prop ``iconStyle`` is now available. This can be used with the ``IconStyle`` class as shown above. If you want to customize the fontSize use ``fontSize`` property. Now all characters are displayed instead of only 4 characters as before.
5757

5858
```javascript
5959
// v1

β€Žreact-fileicons/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The following options can be used to access different designs:
4141

4242
```text
4343
<FileIcon
44-
extension="doc" # only the first 5 characters are displayed
44+
extension="doc" # more than 5 chars can require another fontSize
4545
background="#fff" # use to pass your background color to the component
4646
colorScheme={ ColorScheme.red } # must be in the above format
4747
iconStyle={ IconStyle.normal } # normal / gradient / outline
@@ -53,7 +53,7 @@ The following options can be used to access different designs:
5353
## Migrate from v1 to v2
5454

5555
To migrate from v1 to v2, some props have to be changed.
56-
The props ``smallest``, ``small``, ``medium`` have been removed and the size of the icons can now be variably adjusted via the prop ``size``. The props ``linearGradient`` and ``outline`` have also been removed and the prop ``iconStyle`` is now available. This can be used with the ``IconStyle`` class as shown above. If you want to customize the fontSize use ``fontSize`` property. Now also 5 characters are displayed instead of only 4 characters as before.
56+
The props ``smallest``, ``small``, ``medium`` have been removed and the size of the icons can now be variably adjusted via the prop ``size``. The props ``linearGradient`` and ``outline`` have also been removed and the prop ``iconStyle`` is now available. This can be used with the ``IconStyle`` class as shown above. If you want to customize the fontSize use ``fontSize`` property. Now all characters are displayed instead of only 4 characters as before.
5757

5858
```javascript
5959
// v1

β€Žreact-fileicons/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žreact-fileicons/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-fileicons",
3-
"version": "2.2.7",
3+
"version": "2.2.9",
44
"description": "A React component to use file icons more flexible.",
55
"author": "tomxpcvx",
66
"keywords": [

0 commit comments

Comments
Β (0)