Skip to content

Commit 73fd52e

Browse files
README.md update
1 parent 020fb28 commit 73fd52e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ import Skeleton from 'react-loading-skeleton'
3232
import 'react-loading-skeleton/dist/skeleton.css'
3333

3434
<Skeleton /> // Simple, single-line loading skeleton
35+
<Skeleton>
36+
<div>Loading...</div>
37+
</Skeleton> // Simple, with children
3538
<Skeleton count={5} /> // Five-line loading skeleton
3639
```
3740

@@ -166,6 +169,14 @@ return (
166169
</td>
167170
<td></td>
168171
</tr>
172+
<tr>
173+
<td><code>children?: React.ReactNode | JSX.Element | string</code></td>
174+
<td>
175+
If you pass children to the <code>Skeleton</code> component, the
176+
children will be rendered with <code>visibility: hidden</code>.
177+
</td>
178+
<td></td>
179+
</tr>
169180
</tbody>
170181
</table>
171182

0 commit comments

Comments
 (0)