# npm
$ npm install toy-face
# yarn
$ yarn add toy-face
<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>
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 |