Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ | Rejoignez-nous sur le Chat 💬

Skip to content

create a carousel component

Create a carousel component

This component must take a list of objects as parameter. Each object must be made of:

  • an image (png)
  • a link (optional)

If the link is provided by clicking on the image a new tab opens on the link destination.

FR

Créer un composant carrousel

Ce composant doit prendre une liste d'objet en paramètre. Chaque objet doit être constitué de:

  • une image (png)
  • un lien (optionnel)

Si le liens est fournis en cliquant sur l'image un nouvel onglet s'ouvre sur la destination du lien.

example

Section : La Boîte à Outils est compatible avec in this page : https://www.lydra.eu/bao

Like this :

Les retours de Christophe :

const CarouselList = [
  {
    img: "img1.svg",
    link: "http://domain.tld"
  },
  {
    img: "img2.svg",
    link: "http://domain.tld"
  },
  {
    img: "img3.svg"  
  },
  {
    img: "img4.svg",
    link: "http://domain.tld"
  },
  {
    img: "img4.svg",
    link: "http://domain.tld"
  }]
  

Slick carousel

npm install slick-carousel https://kenwheeler.github.io/slick/ https://github.com/kenwheeler/slick/

Edited by Christophe Chaudier