Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soapdog/webcomponent-ui-avatar

A web component for ui-avatars.com
https://github.com/soapdog/webcomponent-ui-avatar

Last synced: about 2 months ago
JSON representation

A web component for ui-avatars.com

Awesome Lists containing this project

README

        

# UI Avatar Web Component 😍

This is a pure web component with no dependencies for [ui avatars](https://ui-avatar.com). It is built using [StencilJS](https://stenciljs.com).

### Example usage:

```


```

Generates:

![sample avatars](https://i.imgur.com/Ivi5IiH.png)

## Getting Started

Setup and first run:

```bash
npm install
npm start
```

To watch for file changes during develop, run:

```bash
npm run dev
```

To build the component for production, run:

```bash
npm run build
```

To run the unit tests for the components, run:

```bash
npm test
```

Need help with Stencil? Check out our docs [here](https://stenciljs.com/docs/my-first-component).

## Using this component

### Script tag

- [Publish to NPM](https://docs.npmjs.com/getting-started/publishing-npm-packages)
- Put a script tag similar to this `` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc

### Node Modules
- Run `npm install my-name --save`
- Put a script tag similar to this `