gravatar-wc
gravatar-wc
uses the Gravatar image request API to display an image for the specified email address. This package uses Stencil to generate a web component that can be used by any front end library or framework.
Attributes
<!-- Empty component. Will use the default image. --><!-- Fully configured component. -->
name | type | options |
---|---|---|
string | ||
default | string | 404, blank, identicon, monsterid, mp, retro, robohash, wavatar |
force-default | boolean | |
protocol | string | http, https |
rating | string | g, pg, r, x |
size | number |
Integration
JavaScript
React
// index.js, index.ts;defineGravatarwindow;
// App.jsx, App.tsx;// skip if using JavaScript - only needed for TypeScriptdeclare global
Vue
// main.js, main.ts;;defineGravatarwindow;Vue.config.ignoredElements = ;
// ExampleComponent.vue