0.0.1 • Published 5 years ago

stars-svg v0.0.1

Weekly downloads
5
License
-
Repository
-
Last release
5 years ago

Overview

This package provides a set of React components for embedding Pinpoint cards

Installing

npm i @pinpt/cards-react

Usage

Profile Cards

import { Profile } from '@pinpt/cards-react';

<Profile
	profile_id={user.profile_id}
/>

Props

NameTypeRequiredDescription
classNamestringNoA CSS class name to pass down to the iframe.
frameTitlestringNoThe title of the iframe.
fullScreenbooleanNowhether to render the profile fullscreen or as a small card. Defaults to false.
onReady(visible?: boolean) => voidNoCallback to call once the profile is done loading. Param visible indicates if the user's profile is made public or not.
profile_idstringYesthe ID of the profile to embed.