Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.53 KB

npm.readme.md

File metadata and controls

35 lines (25 loc) · 1.53 KB

Using qpavy webcomponents

  • Put this script tag : <script type='module' src='https://unpkg.com/qpavy-webcomponents@<LAST_VERSION>/dist/webcomponents/webcomponents.esm.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

q-carousel

Create a fullpage carousel with background-image, title, description and link.

Usage

<q-carousel></q-carousel> works with <li> elements. each <li> defining a slide that should have those attributes to works :

  • carousel-image-url: the backround image url of the slide
  • carousel-title: The title of the slide
  • carousel-description: The description of the slide
  • carousel-url: The link of the slide

Example

<q-carousel>
    <li carousel-image-url="image.jpg" carousel-title="title" carousel-description="description" carousel-url="http://url"></li>
    <li carousel-image-url="image2.jpg" carousel-title="title2" carousel-description="description2" carousel-url="http://url2"></li>
    <li carousel-image-url="image3.jpg" carousel-title="title3" carousel-description="description3" carousel-url="http://url3"></li>
    <li carousel-image-url="image4.jpg" carousel-title="title4" carousel-description="description4" carousel-url="http://url4"></li>
</q-carousel>

Properties

Property Attribute Description Type Default
withScroll with-scroll boolean true