profilesize-library
v1.0.57
Published
it is a profile in multiple sizes
Downloads
4
Readme
profilesize-library
A library to display user profiles in multiple sizes.
Installation
You can install this library using npm: npm install profilesize-library
Usage
To use this library in your React application: import { ProfileList } from 'profilesize-library';
Props:
sizes (array): An array defining profile sizes and styles. onProfileClick (function): A function triggered on profile click. src (string): URL of the profile image. firstName (string): First name of the user. lastName (string): Last name of the user.
Example
Below is an example demonstrating how to use the Profile component:
import React from "react"; import {Profile} from "profile-library";
S## tyling This library comes with pre-defined CSS classes to style the profiles in different sizes. You can also customize these styles according to your requirements.