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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.22latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.22
0.0.10

Package Sidebar

Install

npm i react-face-pile

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

3.73 kB

Total Files

5

Last publish

Collaborators

  • null-none