1.0.1 • Published 3 years ago

toy-face v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

toy-face

Demo (VueJs)

Demo

Installation

# npm
$ npm install toy-face
# yarn
$ yarn add toy-face

Usage

<script src="https://cdn.jsdelivr.net/gh/imanmalekian31/toy-face/dist/bundle.js"></script>
OR
<script src="node_modules/toy-face/dist/bundle.js"></script>
...
<toy-face size="180" rounded="20" toy-number="18" group="2"></toy-face>

Constructor Options

KeyTypeDescriptionDefault
sizeStringWidth and height of avatar (per pixel)48
roundedStringBorder radius of avatar (per pixel)0
toy-numberStringThe Number of each avatar (between 1 to 18)1
groupStringAvatars are defined in each group ( 1 or 2)1

License

The MIT License