ISkeletonProps
interface
Component Props
Props contract for <OrigamSkeleton> — a loading-state placeholder with configurable shape (variant, width, height, rounded), color, and animation (pulse).
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Héritage
Hérite de
Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- variantTSkeletonVariant
- Shape preset for the skeleton placeholder (e.g. text, avatar, card, button).
- widthstring | number
- Explicit width of the skeleton block. Accepts px numbers or any CSS length string.
- loadingboolean
- When false the default slot is revealed instead of the skeleton. Drives a loading-gate pattern.
- animationTSkeletonAnimation
- heightstring | number
- Explicit height of the skeleton block. Accepts px numbers or any CSS length string.
- labelstring
- pulseboolean
- Enables the pulsing animation on the skeleton surface.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Avatar skeleton with pulse