react-face-pile

0.0.2 • Public • Published

react-face-pile

A group of overlapping round avatars are called face piles

Install

npm install react-face-pile

Example

import {FacePile} from 'react-face-pile';
 
import React, {Component} from 'react';
 
 
export default class Example extends Component {
 
    constructor(props) {
        super(props);
        this.state = {
          users: [
            {
            name: "Dmitry Kalinin",
            avatar: null
          },
          {
            name: "Ivan Ivanov",
            avatar: null
          }, 
          {
            name: "Ivan Kalinin",
            avatar: "https://picsum.photos/id/1052/50/50" 
          }, 
          ]
        };
    }
 
    render() {
        return (
          <FacePile size={24} users={this.state.users} />
        );
    }
}
 

License

MIT

Donation Button

Donate

Readme

Keywords

Package Sidebar

Install

npm i react-face-pile

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

3.73 kB

Total Files

5

Last publish

Collaborators

  • null-none