0.1.1 • Published 8 years ago

react-dripr-viewer v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

React Dripr.io - Viewer

npm package

This is a simple viewer for files uploaded to https://dripr.io At the moment, as a test it supports just images.

It wants to be a ReactJS implementation of https://github.com/DevAlien/dripr-embed

Dripr.io Image for react

Installation

The easiest way to use react-dripr-viewer is to install it from npm and include it in your React build process (using Webpack, Browserify, etc).

npm install --save react-dripr-viewer

Usage

Simply import/require the module react-dripr-viewer and specify a fileId prop.

And load the css /styles/style.css somehow.

Example

import React from 'react';
import ReactDOM from 'react-dom';
import DriprViewer from 'react-dripr-viewer';
import 'react-dripr-viewer/styles/style.css';

ReactDOM.render(
    <DriprViewer fileId="EJar82-zW"/>,

    document.querySelector('.app')
);

Features

  • fileId - The only mandatory field is the fileId which is the has of the file you want to show.
  • apiKey - If you have files that can be accessed just with your account you need a Dripr API key which you can find in your user page.
  • baseUrl - The base URL of Dripr, it defaults to https://dripr.io.
  • baseApiUrl - The base URL of Dripr APIs, it defaults to https://api.dripr.io.
  • width - You can set a different width for the file you want to show, it defaults to: 400px.
  • height - You can set a different height for the file you want to show, it default to: 300px.
0.1.1

8 years ago

0.1.0

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago