Carousel preview
A controlled, non-autoplaying carousel with persistent consumer-owned slides, native navigation controls, direct selection, keyboard mov…
pro · Navigation · composite
When to use
- Use it when a page needs a controlled, non-autoplaying carousel with persistent consumer-owned slides, native navigation controls, direct selection, keyboard movement and accessible current-slide status.
- Choose it as the nav region when composing a page from independently reusable TidalUI sections.
Alternatives
- Choose navigation-bar instead when responsive saas navigation with native links, actions and an in-flow mobile disclosure is the actual interface need, rather than carousel.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/carouselImport components/ui/tidal.css, components/ui/carousel.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/carousel.css";
import{TidalCarousel}from"./components/ui/carousel";
export default()=><div className="tidal-scope"><TidalCarousel currentSlideId={"example"} label={"Demo"} onCurrentSlideChange={() => {}} slides={[{id:"example",label:"Demo",content:"value"}]}/></div>;API and props
TidalCarousel.currentSlideId (required)stringRequired current slide id value accepted by this exported component.
TidalCarousel.label (required)stringRequired label value accepted by this exported component.
TidalCarousel.onCurrentSlideChange (required)(slideId: string, event: TidalCarouselChangeEvent, source: TidalCarouselChangeSource) => voidCallback invoked when the current slide change interaction is proposed.
TidalCarousel.slides (required)ReadonlyArray<TidalCarouselSlide>Required slides value accepted by this exported component.
TidalCarousel.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalCarousel.emptyMessageReactNodeOptional empty message value accepted by this exported component.
TidalCarousel.labelsPartial<TidalCarouselLabels> | undefinedOptional labels value accepted by this exported component.
TidalCarousel.loopboolean | undefinedOptional loop value accepted by this exported component.
TidalCarousel.nextButtonPropsOmit<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "type" | "aria-disabled" | "aria-label" | "children"> | undefinedOptional next button props value accepted by this exported component.
TidalCarousel.nextButtonRefRef<HTMLButtonElement> | undefinedOptional next button ref value accepted by this exported component.
TidalCarousel.previousButtonPropsOmit<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "type" | "aria-disabled" | "aria-label" | "children"> | undefinedOptional previous button props value accepted by this exported component.
TidalCarousel.previousButtonRefRef<HTMLButtonElement> | undefinedOptional previous button ref value accepted by this exported component.
TidalCarousel.showDirectControlsboolean | undefinedOptional show direct controls value accepted by this exported component.
TidalCarousel.viewportPropsOmit<HTMLAttributes<HTMLDivElement>, "tabIndex" | "role" | "aria-label" | "aria-roledescription" | "children"> | undefinedOptional viewport props value accepted by this exported component.
TidalCarousel.viewportRefRef<HTMLDivElement> | undefinedOptional viewport ref value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.