Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adactive/arc-itemcarousel

Package Overview
Dependencies
Maintainers
5
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adactive/arc-itemcarousel

Adsum Item Carousel Component

  • 0.0.2-y.44.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-94.44%
Maintainers
5
Weekly downloads
 
Created
Source

image

image

image

Live examples here

Getting started

    npm i --save-dev @adactive/arc-itemcarousel

OR

    yarn add --dev @adactive/arc-itemcarousel
    import AdsumItemCarousel from "@adactive/arc-itemcarousel";
    ...
    
    onItemClicked(item) {
        console.log("[ITEM CLICKED] :: ", item);
    }
    
    const itemsWithoutLogo = [
        {
            name: 'Food'
        },
        ...
        {
            name: 'Carpark'
        }
    ];
    
    <AdsumItemCarousel
        isOpen={true}
        items={itemsWithoutLogo}
        itemsPerPage={9}
        onItemClicked={this.onItemClicked}
    />

Props

export type LogoObject = {
    +uri: string
};

export type ItemObject = {
    +name: string,
    +logo?: LogoObject
};

type PropTypes = {|
    +isOpen: boolean,
    +items: Array<ItemObject>,
    +itemsPerPage: number,
    +onItemClicked: () => null,
    +listWrapperCSS?: CSSStyleDeclaration,
    +thumbNailWrapperCSS?: CSSStyleDeclaration,
    +logoWrapperCSS?: CSSStyleDeclaration,
    +logoCSS?: CSSStyleDeclaration,
    +titleWrapperCSS?: CSSStyleDeclaration,
    +titleCSS?: CSSStyleDeclaration,
    +dashCSS?: CSSStyleDeclaration,
    +carouselOptions?: Object
|};

static defaultProps = {
    isOpen: false,
    items: [],
    itemsPerPage: 0,
    onItemClicked: null
};

isOpen -> To show or hide itemCarousel

items -> Array of itemsObjects to be displayed in the carousel

itemsPerPage -> To set the number of thumbnail in each carousel page

onItemClicked -> A callback function to capture clicking of thumbnail

listWrapperCSS -> To customise CSS for the overall list

thumbNailWrapperCSS -> To customise CSS for the overall thumbnail css

logoWrapperCSS -> To customise CSS for the div wrapping around the logo

logoCSS -> To customise CSS for logo div

titleWrapperCSS -> To customise CSS for the wrapper around title and dash div

titleCSS -> To customise CSS for the title div

dashCSS -> To customise CSS for the dash div

carouselOptions -> Refer to nuka-carousel for more information

image

Copy component inside your project src folder

Less only

`npx @adactive/arc-itemcarousel copy --less-only`

Full copy

`npx @adactive/arc-itemcarousel copy`

Keywords

FAQs

Package last updated on 05 Jun 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc