Documentation Index
Fetch the complete documentation index at: https://anvil.servicetitan.com/llms.txt
Use this file to discover all available pages before exploring further.
- Implementation
- Avatar Props
- AvatarGroup Props
Common Examples
Changing the avatar colors
Avatar colors can be changed using thecolor prop. Internally, the color could be adjusted in order to ensure low vision and colorblind users can read the text.Showing online status on avatars
Set thestatus prop to "online" or "offline" to add an indicator to the avatar.Avatar image and name
The content within an avatar will change based on thename and image props provided. If an image is provided, and does not fail to load, it will be displayed.If no image is provided, or it fails to load, two characters of the name value will show instead:- If
nameis a single word, the first two characters will be used - If
nameis multiple words, the first characters of the first and last words are used
Stacking avatars in a group
Avatars can be grouped using theAvatar.Group component. They will overlap slightly, with the last Avatar component child on top.Avatar as a button
To make an avatar interactive, wrap it with aButtonCompound with shape="circular". This will add a button element around the avatar which can be used for tab focus and interactions.