Skip to content

seokgyo/react-cloudinary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 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

Contributors 3

  •  
  •  
  •