react-toy-face

1.0.2 • Public • Published

react-toy-face

Demo

Demo

Installation

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

Usage

import React from "react";
import ReactToyFace from "react-toy-face";

function App() {
  return (
    <div>
      <ReactToyFace size={140} rounded={28} toyNumber={3} />
    </div>
  );
}

Constructor Options

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

License

The MIT License

Readme

Keywords

Package Sidebar

Install

npm i react-toy-face

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

4.15 kB

Total Files

4

Last publish

Collaborators

  • iman-malekian