1.0.7 • Published 5 years ago

avatio-avatar v1.0.7

Weekly downloads
24
License
MIT
Repository
github
Last release
5 years ago

Avatio Avatar

VueJS 2 component to display SVG avatar.

Vector graphic is designed by Teneresa - and therefore I ow her a big thank you!

Inspiration came from Avataaars, which is similar project focusing on React.

Features

  • SVG
  • Configurable
  • Extensible

How to use

At first you have to install package by yarn or npm like so

yarn add avatio-avatar

Then you can use the component

import Avatar, {Config} from 'avatio-avatar';

const app = new Vue({
    components: {Avatar},
    template: `<avatar :config="config" :options="options"></avatar>`,
    data: {
        config: Config['Female'],
        options: {
          FemaleGlasses: {
            color: "#fff",
            type: "B",
          },
          //...
        },
    }
});

Configuration

All component is dynamical and is generated by configuration, take a look. By this mechanism is easily extensible and config is used to generate UI of avatar generator.

Building

If you want to build the package, you can run

yarn build
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago