New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dwcarousel

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dwcarousel

A carrosel container component.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

DWcarousel

Description

A carrosel container component.

Props

NameTypeRequiredDefault valueDescription
DWcarousel.PageReact.Nodetrue-A component that will be rendered the pages DWcarousel
childrenReact.NodefalsenullA component that will be rendered inside the DWcarousel.Page.
initialPageIntegerfalse0Set a initial page
hideIndicatorsBooleanfalsefalseSet to true to hide the indicators
indicatorColorStringfalse#FFFFFFActive indicator color
indicatorSizeFloatfalse30Indicator bullet size
indicatorSpaceFloatfalse15Space between each indicator
inactiveIndicatorColorStringfalse#DDDDDDInactive indicator color
indicatorAtBottomBooleanfalsetrueSet to false to show the indicators at the top
indicatorOffsetFloatfalse0Indicator relative position from top or bottom
inactiveIndicatorTextStringfalse'•'Inactive indicator content ( You can customize to use any Unicode character )
indicatorTextStringfalse'•'Active indicator content ( You can customize to use any Unicode character )
animateBooleanfalsefalseEnable carousel autoplay
delayIntegerfalse1000Set Animation delay between slides
loopBooleanfalsefalseAllow infinite looped animation. Depends on Prop {...animate} set to true.
containerStyleTStylefalse{}Style container - component BBCarrosel
pageStyleTStylefalse{}Style container - component DWcarousel.Page

Usage example

  ...

  render() {
    ...
    return (
      <DWcarousel
        indicatorColor="red"
      >
        <DWcarousel.Page>
          <View>
            <Text>Content 1 - Page 1</Text>
          </View>
          <View>
            <Text>Content 2 - Page 1</Text>
          </View>
        </DWcarousel.Page>
        <DWcarousel.Page>
          <View>
            <Text>Content 1 - Page 2</Text>
          </View>
          <View>
            <Text>Content 2 - Page 2</Text>
          </View>
        </DWcarousel.Page>
      </DWcarousel>
    )
  ...

Keywords

carousel

FAQs

Package last updated on 12 Apr 2019

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