Component libraryCarousel
Components/Navigation

Carousel

Pro

A controlled, non-autoplaying carousel with persistent consumer-owned slides, native navigation controls, direct selection, keyboard movement and accessible current-slide status.

npx shadcn@latest add @tidal-pro/carousel
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/carousel

Import components/ui/tidal.css, components/ui/carousel.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

label, slides, currentSlideId and onCurrentSlideChange are required. Each unique slide supplies an id, accessible string label, consumer-owned content and optional direct-control label, native slide/control attributes and refs. The root is a labelled carousel region; its focusable viewport supports direction-aware Arrow movement plus Home/End without intercepting keys from nested slide controls. Native previous, next and direct buttons run supplied handlers first and honor prevention. Optional loop, disabled, localized labels, empty content, direct-control visibility, native root/viewport/button attributes and refs remain consumer-owned. Every slide stays mounted while inactive slides are inert and hidden from assistive technology, preserving consumer state. There is no autoplay, timer, request, route, analytics, network, storage or persistence behavior.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.