Avatars
Personalize your toast notifications by adding avatars. Perfect for social interactions, user mentions, or chat-like notifications.
Avatar Types
Nuxt Notify supports three types of avatars:
- Image Avatar: Display a user's profile picture
- Icon Avatar: Show an icon
- Text Avatar: Display initials or short text
Image Avatar
Display a user's profile picture:
Example
Icon Avatar
Use an icon as the avatar:
Example
Text Avatar
Display initials or short text:
Example
Use Cases
Social Notifications
Example
Team Collaboration
Example
System Notifications with Icons
Example
Chat Messages
Example
Avatar with All Features
Combine avatars with other features:
Example
Popular Icons for Avatar
Some commonly used icons for system avatars:
Examples
Pro Tip: Use image avatars for person-to-person interactions, icon avatars for system events, and text avatars when you don't have a profile picture but want to show initials.
Best Practices
Image URLs
- Use HTTPS URLs for security
- Ensure images are optimized (small file size)
- Use square images (1:1 ratio) for best results
- Consider using a CDN for faster loading
Text Avatars
- Keep text short (1–2 characters max)
- Use uppercase for consistency
- Perfect for user initials:
"JD"for John Doe
Icon Selection
- Choose icons that represent the action or context
- Stick to a consistent icon set
- Ensure icons are recognizable at small sizes
