empower-custom-profile-image

0.1.3 • Public • Published

Getting Started with Empower Custom Profile Image Component

Sample Usage

import { ProfileImage, ProfileDetails, ImageCropper } from 'empower-custom-profile-image';

const paramImage = {
  size: 'lg',
  url:'',
  placeholder: 'IN',
  element1: 'Firstname Lastname',
  element2: 'Reporting Job',
  element3: 'Reporting Department',


}

const paramDetails = {
  size: 'lg',
  url:'',
  placeholder: 'IN',
  first_name: 'first_name',
  last_name: 'last_name',
  job: 'position title',
  department: 'department name',
  site: 'site',
  employeNumber: 'employeNumber',
  tenure: {
    year:  '2021',
    month: 'Aug'
  },
  reportingTo:{
    url:'',
    placeholder: 'IN',
    first_name: 'Reporting Firstname',
    last_name: 'Reporting Lastname',
    job: 'Reporting Job',
  }
}


function App() {
  const uploadAction = (val) => {

  }

  return (
    <div className="App">
      <h3>Profile Image Component</h3>
      <ProfileImage {...paramImage}  />


      <h3>Profile Details Component</h3>
      <ProfileDetails {...paramDetails}  />

      <ImageCropper 
        uploadAction={val => uploadAction(val)} 
        uploadResult={true}
      />
    </div>
  );
}

export default App;

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.30latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.30
0.1.21
0.1.10
0.1.01

Package Sidebar

Install

npm i empower-custom-profile-image

Weekly Downloads

2

Version

0.1.3

License

none

Unpacked Size

46 kB

Total Files

21

Last publish

Collaborators

  • empower.dio.danganan
  • empower-harold
  • regino.victorino
  • empowerteams
  • empower-eushen
  • aaron.samar
  • mike.baccay