We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 020fb28 commit 73fd52eCopy full SHA for 73fd52e
README.md
@@ -32,6 +32,9 @@ import Skeleton from 'react-loading-skeleton'
32
import 'react-loading-skeleton/dist/skeleton.css'
33
34
<Skeleton /> // Simple, single-line loading skeleton
35
+<Skeleton>
36
+ <div>Loading...</div>
37
+</Skeleton> // Simple, with children
38
<Skeleton count={5} /> // Five-line loading skeleton
39
```
40
@@ -166,6 +169,14 @@ return (
166
169
</td>
167
170
<td></td>
168
171
</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>
180
</tbody>
181
</table>
182
0 commit comments