Welcome Getting started Layout styles github-circle-black-transparent Source
Components
Badges
App bars
Bottom app bars Top app bars
Buttons
Common buttons FAB Icon buttons Segmented buttons
Cards Carousel Checkboxes Chips Date pickers Dialogs Forms Icons Lists Menus Navigation Progress indicators Pull to refresh Radios Search Selects
Sheets
Bottom sheets Side sheets
Sliders Snackbars Switches Tables Tabs Text fields Time pickers Tooltips Utilities
home apps Buttons palette Two
Materially
github-circle-black-transparent

Carousel

Carousels show a collection of items that can be scrolled on and off the screen
Material Design Guidelines: Carousel

Basic

landscape landscape landscape landscape landscape landscape landscape landscape landscape
<mc-carousel>
  <mc-carousel-item width="170">
    <img alt="landscape" loading="lazy"
      src="..." />
  </mc-carousel-item>
  <mc-carousel-item width="170">
    <img alt="landscape" loading="lazy"
      src="..." />
  </mc-carousel-item>
</mc-carousel>


<!-- Set width directly on item -->
<mc-carousel-item width="170"></mc-carousel-item>

<!-- If no width set and an img is used, then the image width will be used -->
<mc-carousel-item>
  <img src="..." />
</mc-carousel-item>

<!-- If no width is set, the offsetWidth will be used -->
<mc-carousel-item>
  ...
</mc-carousel-item>
            

Strategies

There are 3 strategies: multi-browser, hero-start, hero-centered
multi-browser
landscape landscape landscape landscape landscape landscape landscape landscape landscape
hero-start
landscape landscape landscape landscape landscape landscape landscape landscape landscape
hero-center
landscape landscape landscape landscape landscape landscape landscape landscape landscape
<!-- multi-browser -->
<mc-carousel>
  <mc-carousel-item width="170">
    <img alt="landscape" loading="lazy"
      src="..." />
  </mc-carousel-item>
</mc-carousel>

<!-- hero-start -->
<mc-carousel strategy="hero-start">
  <mc-carousel-item>
    <img alt="landscape" loading="lazy"
      src="..." />
  </mc-carousel-item>
</mc-carousel>

<!-- hero-center -->
<mc-carousel strategy="hero-center">
  <mc-carousel-item>
    <img alt="landscape" loading="lazy"
      src="..." />
  </mc-carousel-item>
            

Images and text

Title
landscape
Title
landscape
Title
landscape
Title
landscape
Title
landscape
Title
landscape
Title
landscape
Title
landscape
Title
landscape
<mc-carousel mc-item-width="170" style="height: 180px;">
  <mc-carousel-item width="170">
    <div class="mc-text">
      <div>Title</div>
    </div>
    <img alt="landscape" loading="lazy" src="./img.jpg"/>
  </mc-carousel-item>
  <mc-carousel-item width="170">
    <div class="mc-text">
      <div>Title</div>
    </div>
    <img alt="landscape" loading="lazy" src="./img.jpg"/>
  </mc-carousel-item>
  <mc-carousel-item width="170">
    <div class="mc-text">
      <div>Title</div>
    </div>
    <img alt="landscape" loading="lazy" src="./img.jpg"/>
  </mc-carousel-item>
</mc-carousel>
            
menu home apps Get started