react-dlcs-panel
v0.1.8
Published
react-dlcs-panel React component
Downloads
12
Readme
react-dlcs-panel
This library implements a DLCS image lister panel for React.
Demo:
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