Verwende SkeletonText für ...
- Textzeilen, deren Höhe sich aus der umgebenden Typografie ergibt.
- Überschriften, Fließtext und Labels.
import { SkeletonText, Text, } from "@mittwald/flow-react-components"; <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 | Default | Description |
|---|---|---|---|
width | Width<string | number> | - | The width of the skeleton text. |
| Property | Type | Default | 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. |