@inventage-web-components/avatar-image
v0.1.2
Published
An avatar image based on user initials.
Downloads
10
Maintainers
Readme
@inventage-web-components/avatar-image
An avatar image based on user initials.
Quick Start
Use unpkg.com to get a simple example running in a single HTML file:
<script type="module" src="https://unpkg.com/@inventage-web-components/avatar-image/lib/src/avatar-image.js?module"></script>
<avatar-image input="John Doe"></avatar-image>
Here's an example of this method to get you started.
Installation
npm i @inventage-web-components/avatar-image
Usage
<!--
Adjust path to node_modules and use a dev server that support Node module
resolution, like Web Dev server: https://www.npmjs.com/package/@web/dev-server
-->
<script
type="module"
src="/node_modules/@inventage-web-components/avatar-image/lib/src/avatar-image.js"
</script>
<avatar-image input="John Doe"></avatar-image>
Documentation
The API documentation as well as interactive examples can be found in the Storybook examples.