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

@acctglobal/carousel-universal

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acctglobal/carousel-universal

- To add the component in your project, just use npm or yarn as follows

  • 0.2.6
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source
  • To add the component in your project, just use npm or yarn as follows
 yarn add @acctglobal/carousel-universal
 yarn add @acctglobal/carousel-universal

How to use

  • To use compontes follows the steps.
Import
 import Carousel from '@acctglobal/carousel-universal
Declaration component
<div>
 <Carousel>
 </Carousel>
</div>

observation: As the divs that are in the carousel are not random, this usage avoids bugs in the calculation that defines the elements that will be rendered from it.

<div>
 <Carousel>
    <img src="https://via.placeholder.com/200x400.png?text=01"></img>
    <img src="https://via.placeholder.com/200x400.png?text=02"></img>
    <img src="https://via.placeholder.com/200x400.png?text=03"></img>
    <img src="https://via.placeholder.com/200x400.png?text=04"></img>
    <img src="https://via.placeholder.com/200x400.png?text=05"></img>
    <img src="https://via.placeholder.com/200x400.png?text=06"></img>
    <img src="https://via.placeholder.com/200x400.png?text=07"></img>
    <img src="https://via.placeholder.com/200x400.png?text=08"></img>
    <img src="https://via.placeholder.com/200x400.png?text=09"></img>
    <img src="https://via.placeholder.com/200x400.png?text=10"></img>
 </Carousel>
</div>
1. Result

Props

arrow | Object

The arrow prop is responsible to style and visibility of lateral navigation buttons

ParameterTypeDescription
isVisibleBooleanArrows is visible. Optional
iconColorStringArrow icon color. Optional
styleObjectStyle for arrow button. Optional
Use
 <Carousel arrow={{isVisible:true,iconColor:"#ffff",style:{backgroundColor:"#005fd7"}}} >
    <img src="https://via.placeholder.com/200x400.png?text=01"></img>
    <img src="https://via.placeholder.com/200x400.png?text=02"></img>
    <img src="https://via.placeholder.com/200x400.png?text=03"></img>
    <img src="https://via.placeholder.com/200x400.png?text=04"></img>
    <img src="https://via.placeholder.com/200x400.png?text=05"></img>
    <img src="https://via.placeholder.com/200x400.png?text=06"></img>
    <img src="https://via.placeholder.com/200x400.png?text=07"></img>
    <img src="https://via.placeholder.com/200x400.png?text=08"></img>
    <img src="https://via.placeholder.com/200x400.png?text=09"></img>
    <img src="https://via.placeholder.com/200x400.png?text=10"></img>
  </Carousel>
Result

bullet | Object

The bullet prop is responsible to style and visibility of bottom navigation buttons

ParameterTypeDescription
isVisibleBooleanArrows is visible. Optional
bulletDisableColorStringBullet disable color. Optional
bulletEnableColorStringBullet enable color. Optional
styleObjectStyle for bullets button. Optional
Use
<Carousel  bullet={{isVisible:true,bulletDisableColor:"#202124", 
 bulletEnableColor:"#005fd7",style:{marginRight:"20px"}}}
>
    <img src="https://via.placeholder.com/200x400.png?text=01"></img>
    <img src="https://via.placeholder.com/200x400.png?text=02"></img>
    <img src="https://via.placeholder.com/200x400.png?text=03"></img>
    <img src="https://via.placeholder.com/200x400.png?text=04"></img>
    <img src="https://via.placeholder.com/200x400.png?text=05"></img>
    <img src="https://via.placeholder.com/200x400.png?text=06"></img>
    <img src="https://via.placeholder.com/200x400.png?text=07"></img>
    <img src="https://via.placeholder.com/200x400.png?text=08"></img>
    <img src="https://via.placeholder.com/200x400.png?text=09"></img>
    <img src="https://via.placeholder.com/200x400.png?text=10"></img>
  </Carousel>
Result

General props
ParameterTypeDescription
gapItemsNumberDefine spacing entry the elements. Optional
qtyItemsNumberDefine the quantity of elements show in the screen. Optional

FAQs

Package last updated on 23 Jan 2023

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