Socket
Socket
Sign inDemoInstall

@drawbotics/gallery

Package Overview
Dependencies
82
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @drawbotics/gallery

Gallery component used in Drawbotics applications.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Install size
20.0 MB
Created
Weekly downloads
 

Readme

Source

A simple gallery component that uses react-slick under the hood. It provides styling for dots and arrows that can be toggled on or off.

Installation

Install it as usual with npm:

$ npm i @drawbotics/gallery

Usage

The component takes the following props:

  • images: an array of image urls
  • cover (default false): a boolean to set the background position of images to fill the gallery container
  • minimal (default false): a boolean to toggle the navigation

The component will take up the whole space of the parent, so you need to create a container to define its height and width.

If you need to customize the behaviour you can use the props from the react-slick doc.

Here is an example usage:

import React from 'react';
import Gallery from '@drawbotics/gallery';


class MyPage extends React.Component {
  render() {
    return (
      <div classnames="Container">
        <Gallery images={myArrayOfUrls} />
      </div>
    );
  }
}


export default MyPage;

FAQs

Last updated on 26 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc