1.0.40 • Published 7 years ago

eurostar-card-board v1.0.40

Weekly downloads
3
License
ISC
Repository
-
Last release
7 years ago

Eurostar Card Board Component

Component that displays card board.

Contents

A Card Board houses cards and uses a JavaScript carousel at smaller widths.

Installation

Base Styles must be installed in order to use the component. For more detailed explaination please review the Styleguide README here The Card Board has 1 third party library which is preinstalled with Base Styles and 2 third parties libraries required by the JS. The JS should be consumed from the transpiled dist version however if using from the ES6 raw source code, JSPM will need to be installed for usage in order to get these third party libraries.

Third party dependencies:

  • breakpoint-sass
  • (handled via JSPM) lory
  • (handled via JSPM) classlist-polyfill

Eurostar:

  • eurostar-base-styles
  • eurostar-card-board

Usage

  1. Extract the HTML markup as defined under Expand Markup: (https://style.eurostar.com/components/detail/card-board.html)

  2. Import styles:

    // Using JSPM:
    @import "jspm:eurostar-card-board/card-board";
    // Using Webpack:
    @import "~eurostar-card-board/_card-board.scss";
  1. Import JS and Component Initialisation:
    // Using JSPM:
    import Slider from 'eurostar-slider/slider';
    const slider = new Slider();
    // Using Webpack / React:

    // Import
    const Slider = require("eurostar-slider").default;
    
    // Simple init
    new Slider();

    // Or pass elements by ref in React
    const { slider } = this.refs;
    new Slider({ cardBoardElements: [cardBoard] });
1.0.40

7 years ago

1.0.39

7 years ago

1.0.37-alpha.1

7 years ago

1.0.37

7 years ago

1.0.36

7 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.33

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.30-alpha.1

7 years ago

1.0.29

7 years ago

1.0.29-alpha.5

7 years ago

1.0.29-alpha.4

7 years ago

1.0.29-alpha.3

7 years ago

1.0.29-alpha.2

7 years ago

1.0.29-alpha.1

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.26-alpha.1

7 years ago

1.0.25

7 years ago

1.0.23

7 years ago

1.0.24

7 years ago

1.0.22

7 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.0

8 years ago