Based on Facebook's Create react app and DimiMikadze's Create react library.
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
}
]
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.
All library files are located inside src/lib
Is located inside src/demo
directory, here you can test your library while developing
npm run test
or yarn run test
npm run build
or yarn run build
Produces production version of library under the build
folder.
npm publish