Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@influitive/profile-card

Package Overview
Dependencies
Maintainers
4
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@influitive/profile-card

Provides a single profile card.

  • 0.0.28
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
189
Maintainers
4
Weekly downloads
 
Created
Source

Profile Card

A pop over component that displays the an specific user information and provide some relevant links.

###Installation Add "@influitive/profile-card": "X.X.XX" to the projects package JSON ( X.X.XX corresponds to the version you want to use)

Run npm install

###Usage In your component:

import ProfileCard from '@influitive/profile-card/lib';

<ProfileCard
  id={contactUUID} 
  disableViewProfile={aBooleanProp}
  disableMessage={aBooleanProp}
  children={wrappedElement} />

###Props

  • id Uuid of the user whose information is to be display inside the card.
  • disableViewProfile When true hides the link to the user public profile.
  • disableMessage When true hides the link to message that contact.
  • children Corresponds to the element to be wrapped. The profile card should be toggle when clicking on this element.

Extra Considerations: You will need to style the element that is being wrapped. For avatar images we are normally using:

.profile {
  width: 32px;
  border-radius: 100%;
}

###How it works profile-card is just a regular component built using react-redux. When the children element is clickedan ajax call to the /api/people/${id}.json endpoint to fetch that especific user information.

FAQs

Package last updated on 09 Jun 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc