You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

carousel-universal

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

carousel-universal

This component has the functionality to render in the form of a carousel, elements passed by children.

1.0.7
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

This component has the functionality to render in the form of a carousel, elements passed by children.

Intalação

  yarn add carousel-universal

Using

  • import
import Carousel from "carousel-items"
  • Declare
 <Carousel>
</Carousel>
  • Passing Items that will be rendered
<Carousel>
    <img src="http://via.placeholder.com/226x416?text=Product1" alt='' />
    <img src="http://via.placeholder.com/226x416?text=Product2" alt='' />
    <img src="http://via.placeholder.com/226x416?text=Product3" alt='' />
    <img src="http://via.placeholder.com/226x416?text=Product4" alt='' />
    <img src="http://via.placeholder.com/226x416?text=Product5" alt='' />
    <img src="http://via.placeholder.com/226x416?text=Product6" alt='' />
    <img src="http://via.placeholder.com/226x416?text=Product7" alt='' />
</Carousel>
  • Including Mandatory Props
<Carousel bullet={{ isVisible: true }} arrow={{ isVisible: true}}   carouselId="Sample"  >
    ...
</Carousel>

Result

App Screenshot

Props

Bullets Button

ParameterTypeDescription
bulletobjectMandatory. Parameter containing the parameters below
styleobjectOptional. Style that will be applied to the Button
bulletEnableColorstringOptional. Bullet color enabled
bulletDisableColorstringOptional. Bullet color Disable
isVisiblebooleanObrigatório. Visibility of Bullets Button

Arrow Button

ParameterTypeDescription
arrowobjectMandatory. Parameter containing the parameters below
styleobjectOpcional. Estilo que sera aplicado ao Button
iconColorstringOpcional. Cor do Icone
isVisiblebooleanObrigatório.Visibility of Arrows Button

General

ParameterTypeDescription
qtdItemsnumberOptional.Set the Number of Items displayed on the screen
gapItemsnumberOptional. Set the spacing between the items that will be displayed
carouselIdstringMandatory. Unique Carousel Identifie

Note

When using qtdItems it will not be necessary to use gapItems, because the distance of the elements will be calculated automatically.

Use gapItems when the spacing generated by qtdItems is not satisfactory.

FAQs

Package last updated on 02 Mar 2022

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