1.8.1 • Published 3 years ago
gh-carousel-component v1.8.1
what is this?
Pure javascript web component to be used along-side the gh-card-component (https://github.com/dannylockhart91/gh-card-component). Card consists of input slots for title and description.
Installation
npm i gh-carousel-component --save
Then...
<body>
///....
<gh-carousel-component>
<gh-card-component slot="gh-card">
<h1 slot="card-title">
This is the card title
<h1>
<p slot="card-description">
This is the Card description
</p>
</gh-card-component>
<gh-carousel-component>
///....
</body>
usage
Component takes in an optional parameter 'cards-per-slide' which governs the maximum cards available on the carousel at any one time. Default value: 3
<gh-carousel-body cards-per-slide="3">