1.0.5 • Published 6 years ago

wingtrail-avatar-component v1.0.5

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago