Skip to content

imanmalekian31/toy-face

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Key Type Description Default
size String Width and height of avatar (per pixel) 48
rounded String Border radius of avatar (per pixel) 0
toy-number String The Number of each avatar (between 1 to 18) 1
group String Avatars are defined in each group ( 1 or 2) 1

License

The MIT License