Skip to content

salesfelipe/carousel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carousel

Carousel is a canonical component that any VTEX store can install.

Continuous Integrations

Travis CI

Build Status

Usage

Add "vtex.carousel" as your app dependency.

Schema Properties

     autoplay: {
      type: 'boolean',
      title: 'Autoplay',
      default: true,
    },
    showDots: {
      type: 'boolean',
      title: 'Show dots',
      default: true,
    },
    showArrows: {
      type: 'boolean',
      title: 'Show arrows',
      default: true,
    },
    height: {
      type: 'number',
      title: 'Banner max height size (px)',
      default: 420,
      enum: [420, 440],
    },
    mobileHeight: {
      type: 'number',
      title: 'Banner max height size on mobile (px)',
      default: 332,
      enum: [332, 156],
    },
    autoplaySpeed: {
      type: 'number',
      title: 'Autoplay speed(sec):',
      default: 5,
      enum: [4, 5, 6],
    },
    banner: {
      type: 'object',
      title: 'Banner ',
      properties: {
        image: {
          type: 'string',
          title: 'Banner image',
        },
        mobileImage: {
          type: 'string',
          title: 'Banner mobile image',
        },
        page: {
          type: 'string',
          title: 'Banner link',
        },
        description: {
          type: 'string',
          title: 'Banner description',
        },
        targetParams: {
          type: 'object',
          title: 'Banner target params',
          properties: {
            params: {
              type: 'string',
              title: 'Params',
            },
          },
        },
      },
    }

Running Tests

To run the test suit, type the following in the terminal, inside the folder react

$ npm t     # this

Troubleshooting

You can check if others are experiencing similar issues here. Also feel free to open issues.

About

Carousel Component

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 89.3%
  • CSS 10.7%