Giter Site home page Giter Site logo

expertizo / react-fb-image-grid Goto Github PK

View Code? Open in Web Editor NEW
146.0 10.0 61.0 142 KB

A beautifully featured image grid library for React which represents the images just like the facebook grid images with the count for extra as well

License: MIT License

JavaScript 82.86% CSS 17.14%

react-fb-image-grid's Introduction

react-fb-image-grid

An image library that's used to show the images in beautiful grids.

Below you will find some information on how to perform common tasks.

Table of Contents

What's new v0.1.5

  • Fixed key warning.

Demo

react-fb-image-grid

Some Features Video

https://youtu.be/HdEhsDNkw6s

Installation

Run the following

npm install react-fb-image-grid

or

yarn add react-fb-image-grid

Basic Usage

import FbImageLibrary from 'react-fb-image-grid'

<FbImageLibrary images={[]}/>

Props

Props Type Default Example
images Array (String) required {['https://some-url.com/image.jpg', importedImage]} //Local image should be imported first
countFrom Number 5 {2} //Should be from 1 to 5
hideOverlay Boolean false {true}
renderOverlay Function () => 'Preview Image' {() => <button>Show Image</button>}
overlayBackgroundColor String #222222 'green' or '#000000' or 'rgb(255, 26, 26)'
onClickEach Function null {({src, index}) => {}}

Pull Requests

Feel free to make Pull Requests for your feature/fix. To run the project, run

npm install

or

yarn

then

npm start

License

MIT

react-fb-image-grid's People

Contributors

expertstuition avatar kashifsulaiman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-fb-image-grid's Issues

Effect Of Library On UI

when I tried to use(import) the the library it effect my UI my very badly.

Note : I am using bootstrap library for the UI

this is the output without importing the library

wihtoutlibrary

this is the output after importing library

withlibrary

Responsiveness Issue

The library has issues in responsiveness with respect to zoom-in / zoom-out / changing width of the page inside the browser, the component/library doesn't respond to the page width while zooming in or out.

tried on Google Chrome
Version 69.0.3497.100 (Official Build) (64-bit)

Iteration Key Error

Getting each child should have an own key in iteration warning.
Even if I'm using library alone without any other code.

No option for setting the height of images

There is not an option (props) to set the height of images, when I am using this library in Material UI CARD component it takes the 100% height and cannot be set by custom styling (CSS).
@kashifsulaiman

download
First one is without the card and the second one is inside the card component.

Grid not showing on small display

I've used this image grid on a PWA but as it's a small display, the images are not showing in the grid. The grid only shows on large screens.

Can anyone please tell me if I can show the images as the grid on small displays as well?

update the old version of react-bootstrap to latest one

your module is good but it will be much better if you update it's dependencies like react-bootstrap to latest one so that it'll use latest bootstrap 4.4 as it conflicts with my bootstrap version (4.4) and destroy my react app styles

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.