Skip to content

Commit af829d1

Browse files
committed
Edit README
1 parent f50077e commit af829d1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ function BlogPost(props) {
5252
}
5353
```
5454

55-
...will produce the correctly-sized skeletons for the heading and body without
56-
any further configuration.
55+
...will produce correctly-sized skeletons for the heading and body without any
56+
further configuration.
5757

5858
This ensures the loading state remains up-to-date with any changes
5959
to your layout or typography.
@@ -177,17 +177,17 @@ return (
177177
<td><code>#f5f5f5</code></td>
178178
</tr>
179179
<tr>
180-
<td><code>width?: number</code></td>
180+
<td><code>width?: string | number</code></td>
181181
<td>The width of the skeleton.</td>
182182
<td><code>100%</code></td>
183183
</tr>
184184
<tr>
185-
<td><code>height?: number</code></td>
185+
<td><code>height?: string | number</code></td>
186186
<td>The height of each skeleton line.</td>
187187
<td>The font size</td>
188188
</tr>
189189
<tr>
190-
<td><code>borderRadius?: number</code></td>
190+
<td><code>borderRadius?: string | number</code></td>
191191
<td>The border radius of the skeleton.</td>
192192
<td><code>0.25rem</code></td>
193193
</tr>
@@ -208,7 +208,7 @@ return (
208208
<td>
209209
Whether the animation should play. The skeleton will be a solid color when
210210
this is <code>false</code>. You could use this prop to stop the animation
211-
if an error is encountered.
211+
if an error occurs.
212212
</td>
213213
<td><code>true</code></td>
214214
</tr>
@@ -254,7 +254,7 @@ In the example below, the height of the `<div>` will be slightly larger than 30
254254
</div>
255255
```
256256

257-
This is a consequence of how `line-height` works in CSS. If you need the `<div>` to be exactly 30px tall, set its `line-height` to 1. [See here](https://github.com/dvtng/react-loading-skeleton/issues/23#issuecomment-939231878) for a detailed explanation.
257+
This is a consequence of how `line-height` works in CSS. If you need the `<div>` to be exactly 30px tall, set its `line-height` to 1. [See here](https://github.com/dvtng/react-loading-skeleton/issues/23#issuecomment-939231878) for more details.
258258

259259
## Contributing
260260

0 commit comments

Comments
 (0)