Verwende SkeletonText für ...
- Textzeilen, deren Höhe sich aus der umgebenden Typografie ergibt.
- Überschriften, Fließtext und Labels.
<Text> <SkeletonText /> </Text>
SkeletonText und Skeleton haben dasselbe Erscheinungsbild, unterscheiden sich aber in ihrer Größe.
Ohne weitere Angabe füllt der SkeletonText die volle Breite des umgebenden
Elements. Über das width-Property lässt sich die Breite anpassen, damit die
Vorschau der erwarteten Textlänge entspricht.
Platziere einen SkeletonText innerhalb einer Heading, damit er deren Schriftgröße übernimmt.
| Property | Type | Description |
|---|---|---|
width | Width<string | number> | The width of the skeleton text. |
wrapWith | ReactElement<unknown, string | JSXElementConstructor<any>> | A React element the component is wrapped with. The element is cloned and receives the component as its only child — useful to render the component inside a link, a tooltip trigger or any other wrapper without changing the surrounding markup. `null` takes a wrapper a surrounding props context set back off, the way `tunnel: null` does for a tunnel. |
| Property | Type | Description |
|---|---|---|
aria-describedby | string | Identifies the element (or elements) that describes the object. @see aria-labelledby |
aria-hidden | Booleanish | Indicates whether the element is exposed to an accessibility API. @see aria-disabled. |
aria-label | string | Defines a string value that labels the current element. @see aria-labelledby. |
aria-labelledby | string | Identifies the element (or elements) that labels the current element. @see aria-describedby. |