Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trunda/avatio-avatar
VueJS component to display SVG avatars.
https://github.com/trunda/avatio-avatar
avatar avatar-component avatar-generator component svg svg-avatar vuejs
Last synced: about 1 month ago
JSON representation
VueJS component to display SVG avatars.
- Host: GitHub
- URL: https://github.com/trunda/avatio-avatar
- Owner: trunda
- Created: 2019-03-13T14:08:43.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-03-14T19:49:09.000Z (about 5 years ago)
- Last Synced: 2024-03-25T10:21:35.002Z (about 2 months ago)
- Topics: avatar, avatar-component, avatar-generator, component, svg, svg-avatar, vuejs
- Language: Vue
- Homepage: https://avatio.cool
- Size: 308 KB
- Stars: 16
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-vue - avatio-avatar - Vue component for illustrated avatars - used by [Avatio](https://avatio.cool) (Components & Libraries / UI Components)
- awesome-vue - avatio-avatar - Vue component for illustrated avatars - used by [Avatio](https://avatio.cool) (Components & Libraries / UI Components)
- awesome-vue - avatio-avatar - Vue component for illustrated avatars - used by [Avatio](https://avatio.cool) (Components & Libraries / UI Components)
- awesome-vue - avatio-avatar - Vue component for illustrated avatars - used by [Avatio](https://avatio.cool) (Components & Libraries / UI Components)
- awesome-vue - avatio-avatar - Vue component for illustrated avatars - used by [Avatio](https://avatio.cool) (Components & Libraries / UI Components)
- awesome-vue - avatio-avatar - Vue component for illustrated avatars - used by [Avatio](https://avatio.cool) (Components & Libraries / UI Components)
- awesome-vue - avatio-avatar - Vue component for illustrated avatars - used by [Avatio](https://avatio.cool) (Components & Libraries / UI Components)
- awesome-vue - avatio-avatar - Vue component for illustrated avatars - used by [Avatio](https://avatio.cool) (Components & Libraries / UI Components)
- awesome-vue - avatio-avatar - Vue component for illustrated avatars - used by [Avatio](https://avatio.cool) (Components & Libraries / UI Components)
- awesome-vue - avatio-avatar - Vue component for illustrated avatars - used by [Avatio](https://avatio.cool) (UI Components / Miscellaneous)
- awesome-vue - avatio-avatar - Vue component for illustrated avatars - used by [Avatio](https://avatio.cool) (UI Components / Miscellaneous)
- awesome-vue - avatio-avatar - Vue component for illustrated avatars - used by [Avatio](https://avatio.cool) (Components & Libraries / UI Components)
README
# Avatio Avatar
VueJS 2 component to display SVG avatar.
Vector graphic is designed by [Teneresa](https://github.com/teneresa) - and therefore I ow her a big thank you!
Inspiration came from [Avataaars](https://github.com/fangpenlin/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
```bash
yarn add avatio-avatar
```Then you can use the component
```javascript
import Avatar, {Config} from 'avatio-avatar';const app = new Vue({
components: {Avatar},
template: ``,
data: {
config: Config['Female'],
options: {
FemaleGlasses: {
color: "#fff",
type: "B",
},
//...
},
}
});```
## Configuration
All component is dynamical and is generated by configuration, [take a look](https://github.com/trunda/avatio-avatar/blob/master/src/avatio.js).
By this mechanism is easily extensible and config is used to generate [UI of avatar generator](https://github.com/trunda/avatio-ui).## Building
If you want to build the package, you can run
```bash
yarn build
```