IAvatarProps
Full props contract for <OrigamAvatar> — renders an image, icon or text inside a circular (or rounded) container. Exposes the full design surface (color, border, elevation, spacing, density, size, rounded) plus interactive hover and active state props.
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.
- iconTIcon
- Renders an icon centered inside the avatar. Mutually exclusive with image and text: image wins, then icon, then text.
- imagestring | ISrcObject
- Avatar image — a URL string or an ISrcObject for srcset / lazy-src support. Takes precedence over icon and text.
- textstring
- Initials or short text rendered inside the avatar when no image or icon is provided.
É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 with image and border