/react-dlcs-panel

DLCS image selector panel for React 16.

Primary LanguageJavaScriptMIT LicenseMIT

react-dlcs-panel

Travis Build Status npm package Coveralls

This library implements a DLCS image lister panel for React.

Demo:

Demo image

If you have a DLCS account:

https://react-dlcs-panel.netlify.com/

Installation

npm install react-dlcs-panel

or

yarn add react-dlcs-panel

Usage

import React from 'react'
import { DLCSImageSelector } from 'react-dlcs-panel'

const ImageSelectorDemo = (props) => (
    <div style={{width:'100%', height: '100%'}}>
        <DLCSImageSelector imageOnClick={(ev, image)=>{ 
            alert(image['@id'])
        }/>
    </div>
)

TODO:

  • Finish Readme.md
  • Add ability to upload image (currently on feature branch)
  • Infinite scroll
  • Increase Test Coverage