Skip to content

Commit 084ecab

Browse files
committed
Document support for non-integer count
1 parent 5c77d03 commit 084ecab

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 3.1.0
2+
3+
### Features
4+
5+
- If `count` is set to a decimal number like 3.5, the component will display 3
6+
full-width skeletons followed by 1 half-width skeleton. (#136)
7+
18
## 3.0.3
29

310
### Bug Fixes

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,12 @@ return (
108108
<tbody>
109109
<tr>
110110
<td><code>count?: number</code></td>
111-
<td>The number of lines of skeletons to render.</td>
111+
<td>
112+
The number of lines of skeletons to render. If
113+
<code>count</code> is a decimal number like 3.5,
114+
three full skeletons and one half-width skeleton will be
115+
rendered.
116+
</td>
112117
<td><code>1</code></td>
113118
</tr>
114119
<tr>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-loading-skeleton",
3-
"version": "3.0.3",
3+
"version": "3.1.0",
44
"description": "Make beautiful, animated loading skeletons that automatically adapt to your app.",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)