Code Monkey home page Code Monkey logo

autoresponsive-react's Introduction

autoresponsive-react


Auto responsive grid layout library for React.

NPM version CI Test coverage node version npm download

Who are using

For more

Contributors


xudafeng


HillLiu


conorhastings


montogeek


rayshan


snapre


ywroh


catchonme

This project follows the git-contributor spec, auto updated at Sun Apr 17 2022 21:57:17 GMT+0800.

Examples

Live demo & docs: xudafeng.github.io/autoresponsive-react

To build the examples local, please run:

$ npm i
$ npm run dev

Installation

$ npm i autoresponsive-react --save-dev

Related Edition

Contributing

See our CONTRIBUTING.md for information on how to contribute.

License

MIT Licensed.

autoresponsive-react's People

Contributors

catchonme avatar conorhastings avatar hillliu avatar montogeek avatar rayshan avatar snapre avatar xudafeng avatar ywroh 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  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

autoresponsive-react's Issues

columnWidth vs gridWidth

Hello, docs uses columnWidth but example uses gridWidth. Seems like gridWidth is the one implemented.

Suggestions for centering the resulting container?

It appears that after the container is rendered, the container width > the width of all the items. I tried calculating the # of columns that would be rendered myself and adding padding to adjust, but it's not quite right.

Anyone have a suggestion for this?

Initial animation disable option?

Hey, this is a great library. Thanks for this.
I have a question, is there an option to disable the initial animation, may be we can pass it via getAutoResponsiveProps() ?

Appending on the fly

Interested in using your component on a photography website I'm building. When all done I expect to have ~ 3000 photos with each thumbnail being a max of 260 pixels wide. Would you recommend adding all 3000 images @ once or add them in blocks (ex: 100 components @ a time). I was hoping to be able to "append" images and detect page scrolling. I do not want to use paging.

error on import

Hi,

I would like to use this component but when I import AutoResponsive with:

import AutoResponsive from 'autoresponsive-react';

I get:

ERROR in ./~/autoresponsive-react/lib/index.js
Module parse failed: C:\Devel\dgg\prds\node_modules\autoresponsive-react\lib\index.js Line 17: Unexpected token {
You may need an appropriate loader to handle this file type.
| let Common = require('autoresponsive-common');
|
| let {
|   Util,
|   GridSort
 @ ./~/autoresponsive-react/index.js 16:17-33

Do you have a hint what I am doing wrong?

Thanks
Ludwig

Financing

Hi 👋,

I'm Romuald from the Lsos, an organization that develops financial solutions for open source projects, and we are currently doing outreach to projects we like.

One of our solutions is the Lsos Commons which I believe could fit; is that something AutoResponsive React would be interested in?

If not I'm sorry for having opened this ticket and I'll close it :).

Include build file

Hi, thanks for your library!

I have small problem with browserify, because you're using pure ES6. I also have babel-transform, of course, but can you include full build file to dist, for example?

[09:03:27] Starting 'scripts'...
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: Parsing file /Users/e/dev/yard/frontend/node_modules/autoresponsive-react/lib/index.js: Unexpected token (126:6)
    at Deps.parseDeps (/Users/e/dev/yard/frontend/node_modules/browserify/node_modules/module-deps/index.js:436:28)
    at fromSource (/Users/e/dev/yard/frontend/node_modules/browserify/node_modules/module-deps/index.js:375:44)
    at /Users/e/dev/yard/frontend/node_modules/browserify/node_modules/module-deps/index.js:369:17
    at ConcatStream.<anonymous> (/Users/e/dev/yard/frontend/node_modules/browserify/node_modules/concat-stream/index.js:36:43)
    at ConcatStream.emit (events.js:129:20)
    at finishMaybe (/Users/e/dev/yard/frontend/node_modules/browserify/node_modules/readable-stream/lib/_stream_writable.js:460:14)
    at endWritable (/Users/e/dev/yard/frontend/node_modules/browserify/node_modules/readable-stream/lib/_stream_writable.js:469:3)
    at ConcatStream.Writable.end (/Users/e/dev/yard/frontend/node_modules/browserify/node_modules/readable-stream/lib/_stream_writable.js:436:5)
    at DuplexWrapper.onend (/Users/e/dev/yard/frontend/node_modules/browserify/node_modules/readable-stream/lib/_stream_readable.js:537:10)
    at DuplexWrapper.g (events.js:199:16)
    at DuplexWrapper.emit (events.js:129:20)
    at /Users/e/dev/yard/frontend/node_modules/browserify/node_modules/readable-stream/lib/_stream_readable.js:934:16
    at process._tickCallback (node.js:355:11)

Invalid typescript specification

Currently, index.t.ts contains:

declare class AutoResponsive extends React.Component<AutoResponsiveProps, any> {}

But this doesn't allow child elements! It instead needs to be

declare class AutoResponsive extends Component<PropsWithChildren<AutoResponsiveProps>, any> {}

Not working on IE

Only shows blank screen on IE. I'm currently using IE 11. Does any one know why ? Any package I can use to fix. Please suggest.

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.