bpk-component-carousel

0.2.24 • Public • Published

bpk-component-carousel

Backpack carousel component.

Installation

npm install bpk-component-carousel --save-dev

Usage

import React from 'react';
import BpkCarousel from 'bpk-component-carousel';
 
// Carousel items all need to be the same width.
const CAROUSEL_ITEM_WIDTH = '15rem';
 
export default () => (
  <BpkCarousel>
    <BpkCard style={{width: CAROUSEL_ITEM_WIDTH; }}>Item 1</BpkCard>
    <BpkCard style={{width: CAROUSEL_ITEM_WIDTH; }}>Item 2</BpkCard>
  </BpkCarousel>
);

Props

Property PropType Required Default Value
className string false null

Readme

Keywords

none

Package Sidebar

Install

npm i bpk-component-carousel

Weekly Downloads

20

Version

0.2.24

License

Apache-2.0

Unpacked Size

33.1 kB

Total Files

12

Last publish

Collaborators

  • ojcurt
  • frugoman
  • gert-jan.vercauteren
  • mungodewar
  • skyscanner-koalasquad
  • anambl