0.1.1 • Published 10 years ago

react-dripr-viewer v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 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

10 years ago

0.1.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago