New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-card-profile

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-card-profile

React component designed to create interactive and customizable profile cards. You can use this component to display information about an individual, including their name, description and links to social media.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

react-card-profile

ProfileCard is a React component designed for creating interactive and customizable profile cards. Use this component to showcase information about an individual, including their name, description, social media links, and more.

Key Features

  • Customization: Highly customizable with options to adjust width, background color, title color, text color, and background image of the card.

  • Integrated Social Icons: Includes predefined social media icons for platforms such as Facebook, Github, Instagram, Twitter, TikTok, LinkedIn, and Youtube.

  • Automatic Social Media Detection: Automatically selects the correct icon for the provided social media links, making it easy to integrate new platforms.

Installation

npm install react-card-profile

Basic Usage

import React from 'react';
import { ProfileCard } from 'react-card-profile';

const MyProfile = () => {
  const myCardStyle = {
    width: '300px',
    backgroundColor: '#F0F0F0',
    titleColor: '#333333',
    descriptionColor: '#666666',
    backgroundPicture: 'https://example.com/background.jpg',
    pictureUrl: 'https://example.com/profile-picture.jpg',
  };

  const myMedias = ['https://facebook.com/myprofile', 'https://github.com/myprofile'];

  return <ProfileCard name="John Doe" description="Software Developer" mediasUrl={myMedias} cardStyle={myCardStyle} />;
};

export default MyProfile;

Props

PropTypeDescription
namestringThe name of the individual being displayed.
descriptionstring(Optional) A brief description or role of the individual.
mediasUrlstring[]An array of social media URLs associated with the individual.
cardStyleobject(Optional) An object containing styles for customizing the appearance of the profile card.

cardStyle Object Properties

PropertyTypeDescription
widthstring(Optional) Width of the profile card. Example: '300px'.
backgroundColorstring(Optional) Background color of the card. Example: '#F0F0F0'.
titleColorstring(Optional) Color of the title (name) text. Example: '#333333'.
descriptionColorstring(Optional) Color of the description text. Example: '#666666'.
backgroundPicturestring(Optional) URL of the background picture for the card. Example: 'https://example.com/background.jpg'.
pictureUrlstringURL of the individual's profile picture. Example: 'https://example.com/profile-picture.jpg'.

Customize and showcase your profiles attractively with ProfileCard!

Keywords

React

FAQs

Package last updated on 23 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts