wingtrail-avatar-component
v1.0.5
Published
Avatar selector component for React application
Maintainers
Readme
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
