All Projects → pinterest → React Pinterest

pinterest / React Pinterest

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to React Pinterest

Affiliates
*Archived* A cozy new home for the former SpreadFirefox affiliates program.
Stars: ✭ 43 (-71.52%)
Mutual labels:  archived
Siteleaf V1 Themes
Siteleaf v1 theme documentation
Stars: ✭ 72 (-52.32%)
Mutual labels:  archived
Codeigniter Base Controller
⛔️DEPRECATED CodeIgniter base controller with view autoloading and layout support
Stars: ✭ 115 (-23.84%)
Mutual labels:  archived
Mricrogl
DEPRECATED development has moved to https://github.com/rordenlab/MRIcroGL12
Stars: ✭ 49 (-67.55%)
Mutual labels:  archived
Commoncrawl Examples
A library of examples showing how to use the Common Crawl corpus (2008-2012, ARC format)
Stars: ✭ 63 (-58.28%)
Mutual labels:  archived
Codeigniter Schema
⛔️DEPRECATED Expressive table definitions
Stars: ✭ 87 (-42.38%)
Mutual labels:  archived
Noty
⛔️ DEPRECATED - Dependency-free notification library that makes it easy to create alert - success - error - warning - information - confirmation messages as an alternative the standard alert dialog.
Stars: ✭ 6,725 (+4353.64%)
Mutual labels:  archived
Benchmark Php
🚀 A benchmark script for PHP and MySQL (Archived)
Stars: ✭ 122 (-19.21%)
Mutual labels:  archived
Sphero Mac Sdk
🚫 DEPRECATED: Sphero SDK for the Mac platform.
Stars: ✭ 70 (-53.64%)
Mutual labels:  archived
Closure Linter
Automatically exported from code.google.com/p/closure-linter
Stars: ✭ 104 (-31.13%)
Mutual labels:  archived
Codeigniter Base Model
⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity
Stars: ✭ 1,052 (+596.69%)
Mutual labels:  archived
Feedr
Use feedr to fetch the data from a remote url, respect its caching, and parse its data. Despite its name, it's not just for feed data but also for all data that you can feed into it (including binary data).
Stars: ✭ 56 (-62.91%)
Mutual labels:  archived
Julian
⛔️DEPRECATED Brilliantly clever PHP calendar class
Stars: ✭ 89 (-41.06%)
Mutual labels:  archived
Example Warc Java
Stars: ✭ 44 (-70.86%)
Mutual labels:  archived
Python Firebase
⛔️ [DEPRECATED] python wrapper for Firebase's REST API
Stars: ✭ 117 (-22.52%)
Mutual labels:  archived
Ipfs Textbook
[unmaintained] Helping me understand what IPFS is and how it works
Stars: ✭ 43 (-71.52%)
Mutual labels:  archived
Adminbar
DEPRECATED – Front-end shortcuts for clients logged into Craft CMS.
Stars: ✭ 77 (-49.01%)
Mutual labels:  archived
Pinlater
PinLater is a Thrift service to manage scheduling and execution of asynchronous jobs.
Stars: ✭ 125 (-17.22%)
Mutual labels:  archived
Go Web3
Ethereum Go Client [obsolete]
Stars: ✭ 120 (-20.53%)
Mutual labels:  archived
Secretary
DEPRECATED Secrets management for dynamic environments
Stars: ✭ 93 (-38.41%)
Mutual labels:  archived

Note: This project is no longer actively maintained by Pinterest.


react-pinterest

As ReactJS continues to increase in popularity for both startups and large-scale technology companies, we wanted to make it as easy as possible to add Pinterest content onto these sites. This helps both you and us. The more content you drive into Pinterest, the more traffic you get in return. React brings widgets to a whole new level, and we are excited to introduce a React component collection of our already popular Pinterest widgets.

Install

npm install react-pinterest --save

The full list of available widgets are:

  • Pin It Button
  • Pinterest Follow Button
  • Pinterest Pin Widget
  • Pinterest Profile Widget
  • Pinterest Board Widget
  • Pinterest Grid

Pin It Button

prop type default notes
type string 'any' enum of { 'any', 'one' }
color string 'grey' enum of { 'red', 'white', 'grey' }
large boolean false is large sized button
round boolean false is circular button

The following props are specific for type="one". Each prop refers to the Pin to be pinned on click. If pin is specified, it will be a repin, otherwise it will create a new Pin using media, url, and description.

prop type notes
pin string the id of the Pin to repin
media string the image url of the Pin to create
url string the link back of the Pin to create
description string the description of the Pin to create

Use:

import { PinItButton } from 'react-pinterest';

// To create a Pin one Pin It button
<PinItButton type="one" media="https://goo.gl/zFFBUK" url="https://goo.gl/hQmcWP" description="Example Stuff"/>

// To Create a repin Pin It button
<PinItButton type="one" pin="356417757988637350" />

// To Create a Pin any Pin It Button: opens the image picker overlay
<PinItButton type="any" />
<PinItButton type="any" color="white" />
<PinItButton type="any" color="white" large={true}/>
<PinItButton type="any" color="red" />
<PinItButton type="any" color="red" large={true} />
<PinItButton type="any" round={true} />
<PinItButton type="any" round={true} large={true} />

Pinterest Follow Button

prop type notes
board string the board slug of the board to follow (<username>/<board_name>)
user string the username of the user to follow

Choose either a board or user to follow. If both are specificed, board will be used.

Use:

import { PinterestFollowButton } from 'react-pinterest';

// To create a board follow button
<PinterestFollowButton board="pinterest/official-news">Official News</PinterestFollowButton>

// To create a profile follow button
<PinterestFollowButton user="pinterest">Pinterest</PinterestFollowButton>

Pinterest Pin Widget

prop type default notes
pin string required the id of the Pin to display
size string 'small' enum of { 'small', 'medium', 'large' }
lang string 'en' language code for Pin

Use:

import { PinterestPinWidget } from 'react-pinterest';

// Pin Widgets default to small
<PinterestPinWidget pin="530158187357124374" />
<PinterestPinWidget size="medium" pin="530158187357124374" />
<PinterestPinWidget size="large" pin="530158187357124374" />

Pinterest Board Widget

prop type default notes
board string required the board slug of the board (<username>/<board_name>)
width number required the width of the board widget
height number required the height of the board widget
columns number required the number of columns in the grid

Use:

import { PinterestBoardWidget } from 'react-pinterest';

<PinterestBoardWidget board="pinterest/official-news" width={300} height={300} columns={5} />

Pinterest Profile Widget

prop type default notes
user string required the username of the profile
width number required the width of the board widget
height number required the height of the board widget
columns number required the number of columns in the grid

Use:

import { PinterestProfileWidget } from 'react-pinterest';

<PinterestProfileWidget user="pinterest" width={300} height={300} columns={5} />

Pinterest Grid

prop type default notes
gutter number 0 the margin between grid elements
columns number ? the number of columns to use in the grid, if unspecified it will guess based on the width of the first grid element

Use:

import { PinterestGrid, PinterestPinWidget } from 'react-pinterest';

<PinterestGrid gutter={gutter}>
    <PinterestPinWidget pin="530158187357124374" />
    <PinterestPinWidget pin="356417757989339525" />
    <PinterestPinWidget pin="356417757986524080" />
    <PinterestPinWidget pin="356417757986724718" />
    <PinterestPinWidget pin="356417757988564358" />
    <PinterestPinWidget pin="356417757988206582" />
    <PinterestPinWidget pin="202802789445693269" />
    <PinterestPinWidget pin="89438742571585339" />
    <PinterestPinWidget pin="232850243203755319" />
    <PinterestPinWidget pin="137008013639035297" />
    <PinterestPinWidget pin="264797653065817757" />
    <PinterestPinWidget pin="144467100519920447" />
</PinterestGrid>

Running the example

npm install; cd examples; node server.js

Then open http://localhost:3000

Try adding a query param to change the PinterestPinWidget size ?size=medium or ?size=large

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].