Skip to content

react components to render cloudinary image and video.

Notifications You must be signed in to change notification settings

thijsadrmat/react-cloudinary

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-cloudinary

Simple wrapper around cloudinary_npm.

installation

npm install react-cloudinary --save

usage

import { cloudinaryConfig, CloudinaryImage, CloudinaryVideo } from 'react-cloudinary';

cloudinaryConfig({ cloud_name: 'xxxx' });

const imagePublicId = 'imagePublicId';
<CloudinaryImage publicId={imagePublicId} options={{ width: 300, height: 300 }} />

const videoPublicId = 'videoPublicId';
<CloudinaryImage publicId={videoPublicId} options={{ width: 300, height: 300, controles: true, preload: 'auto' }} />

About

react components to render cloudinary image and video.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%