@vuecs/gravatar
v2.0.10
Published
A package containing a gravatar component.
Downloads
1,094
Maintainers
Readme
@vuecs/gravatar
<VCGravatar> — Gravatar avatars for Vue 3, part of vuecs. Hashes the email client-side, builds the Gravatar URL, and renders through <VCAvatar> so you get graceful fallback content for free.
✨ What's inside
- 📧
emailor precomputedhash— pass either; hashing happens for you. - 🖼️ Fallback support — composes
<VCAvatar>from@vuecs/elements: broken/missing images fall back to your#fallbackslot (initials, icon, …). - ⚙️ Full Gravatar API surface —
size,defaultImg(retroby default),rating, customhostname/protocolfor self-hosted proxies. - 📐 Display sizing —
displaySize(sm/md/lg) maps onto the avatar's theme variant, independent of the fetched pixelsize.
📦 Installation
npm install @vuecs/gravatar⚡ Usage
<VCGravatar email="[email protected]" :size="160" display-size="lg">
<template #fallback>JD</template>
</VCGravatar>📚 Documentation
Full reference + live demo: vuecs.dev/components/gravatar
License
Made with 💚
Published under Apache 2.0 License.
