You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/pages/api/skeleton.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,9 @@ You can learn more about the difference by [reading this guide](/guides/minimizi
24
24
25
25
| Name | Type | Default | Description |
26
26
|:-----|:-----|:--------|:------------|
27
+
| <spanclass="prop-name">animation</span> | <spanclass="prop-type">'pulse'<br>| 'wave'<br>| false</span> | <spanclass="prop-default">'pulse'</span> | The animation. If `false` the animation effect is disabled. |
27
28
| <spanclass="prop-name">classes</span> | <spanclass="prop-type">object</span> || Override or extend the styles applied to the component. See [CSS API](#css) below for more details. |
28
29
| <spanclass="prop-name">component</span> | <spanclass="prop-type">elementType</span> | <spanclass="prop-default">'div'</span> | The component used for the root node. Either a string to use a DOM element or a component. |
29
-
| <spanclass="prop-name">disableAnimate</span> | <spanclass="prop-type">bool</span> | <spanclass="prop-default">false</span> | If `true` the animation effect is disabled. |
30
30
| <spanclass="prop-name">height</span> | <spanclass="prop-type">number<br>| string</span> || Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card. |
31
31
| <spanclass="prop-name">variant</span> | <spanclass="prop-type">'text'<br>| 'rect'<br>| 'circle'</span> | <spanclass="prop-default">'text'</span> | The type of content that will be rendered. |
32
32
| <spanclass="prop-name">width</span> | <spanclass="prop-type">number<br>| string</span> || Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own. |
@@ -46,7 +46,8 @@ Any other props supplied will be provided to the root element (native element).
46
46
| <spanclass="prop-name">text</span> | <spanclass="prop-name">.MuiSkeleton-text</span> | Styles applied to the root element if `variant="text"`.
47
47
| <spanclass="prop-name">rect</span> | <spanclass="prop-name">.MuiSkeleton-rect</span> | Styles applied to the root element if `variant="rect"`.
48
48
| <spanclass="prop-name">circle</span> | <spanclass="prop-name">.MuiSkeleton-circle</span> | Styles applied to the root element if `variant="circle"`.
49
-
| <spanclass="prop-name">animate</span> | <spanclass="prop-name">.MuiSkeleton-animate</span> | Styles applied to the root element if `disabledAnimate={false}`.
49
+
| <spanclass="prop-name">pulse</span> | <spanclass="prop-name">.MuiSkeleton-pulse</span> | Styles applied to the root element if `animation="pulse"`.
50
+
| <spanclass="prop-name">wave</span> | <spanclass="prop-name">.MuiSkeleton-wave</span> | Styles applied to the root element if `animation="wave"`.
50
51
51
52
You can override the style of the component thanks to one of these customization points:
0 commit comments