A horizontal carousel: touch dragging (dual threshold on displacement / velocity), autoplay (paused on hover and while dragging), two modes — loop wrap-around and boundary clamping — a dots indicator (bottom / overlay) and desktop arrows. All page-index math consumes @lh-ui/share/core/carousel.
Carousel
<template><divclass="demo-col"style="gap: 18px"><divclass="demo-row"style="max-width: 420px"><LhCarousel:autoplay="3000":height="160"><divclass="carousel-page">Ink</div><divclass="carousel-page">Danqing</div><divclass="carousel-page">Gongbi</div></LhCarousel></div><divclass="demo-row"style="max-width: 420px"><LhCarouselv-model="page":loop="false":autoplay="0"show-arrow:height="140"><divclass="carousel-page">Page 1</div><divclass="carousel-page">Page 2</div></LhCarousel></div><pclass="demo-note">Non-loop controlled current page: {{ page }} (arrow keys ←/→ also navigate)</p></div></template><script>exportdefault{data:()=>({page:0,}),}</script>
Root element role="region" + aria-roledescription="carousel"; the accessible name comes from ariaLabel or the page-number announcement; arrow keys ←/→ navigate; non-active pages get aria-hidden