crowdriff-story-network-gallery-react

1.0.1 • Public • Published

CrowdRiff Story Network Gallery React

npm npm bundle size

A lightweight component that allows CrowdRiff customers to embed Story Network galleries on websites built using React.

Getting Started

These instructions will demonstrate how to install the library and implement CrowdRiff story galleries on React websites.

Required Peer Dependancies

  • react: ^16.8.0,
  • react-dom: ^16.8.0

Installation

Using npm:

npm install crowdriff-story-network-gallery-react

Usage

To embed one (or many) galleries, import the CrowdRiffStoryGallery component, and pass the galleryId as a prop.

import  React  from  'react';
import  CrowdRiffStoryGallery  from  'crowdriff-story-network-gallery-react'
export  const  Home  =  ()  =>  {

return  (
	<div>
		<CrowdRiffStoryGallery  galleryId="1234-5678"  />
		<CrowdRiffStoryGallery  galleryId="8765-4321"  />
	</div>
	);
}

Package Sidebar

Install

npm i crowdriff-story-network-gallery-react

Weekly Downloads

4

Version

1.0.1

License

ISC

Unpacked Size

6.72 kB

Total Files

5

Last publish

Collaborators

  • crowdriff-dev