Socket
Socket
Sign inDemoInstall

wingtrail-avatar-component

Package Overview
Dependencies
34
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    wingtrail-avatar-component

Avatar selector component for React application


Version published
Weekly downloads
10
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Wingtrail Avatar Component

Based on Facebook's Create react app and DimiMikadze's Create react library.

How to use it in your react project

Install the package

npm install wingtrail-avatar-component or yarn add wingtrail-avatar-component

Import it

import Avatar from "wingtrail-avatar-component";

Use it

<Avatar avatars={data} />

avatars property will accept an array of object(s) with the format below:

[
  {
    "src": "./images/avatar1.png",
    "label": "Avatar 1",
    "id": 1
  }
]

Have a look inside

Getting Started

Clone repo

git clone https://github.com/adhyapranata/wingtrail-avatar-component.git

Install dependencies

npm install or yarn install

Start development server

npm start or yarn start

Runs the demo app in development mode. Open http://localhost:3000 to view it in the browser.

Library files

All library files are located inside src/lib

Demo app

Is located inside src/demo directory, here you can test your library while developing

Testing

npm run test or yarn run test

Build library

npm run build or yarn run build

Produces production version of library under the build folder.

Publish library

npm publish

Keywords

FAQs

Last updated on 30 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc