Skip to content
loseta

Components / Surfaces

Carousel

A scroll-snap carousel with controls and indicators.

Status stableWorks with card

Installation

pnpm dlx loseta add carousel
npx loseta add carousel

Accessibility and behavior

  • A scroll-snap viewport and track. Items use scroll-snap-align. Consumers own scrolling, aria-current on indicators, aria-hidden/inert on offscreen slides and any autoplay.

Files

components/carousel.cssbase
styles/nova/carousel.cssstyle

Install contract

The CLI writes the base file under components/, the visual file for the selected style under styles/<name>/, and any primitive dependency underprimitives/. The generated index.css imports them in the right layer order.

← Back to components

loseta is MIT licensed. Built with native CSS, no runtime. Inspired byshadcn/ui.